KW.pm The Perl Debugger #6

Blecccch

... legal perl that is dangerous:

      # symbolic russian roulette
      $input = <>;
      ($key, $value) = split /:/, $input;
      $$key = $value;  # instead, use a hash! -->  $i{$key} = $value;
      # bareword-as-string
      $string = blah;  # unless you are writing poetry

<< Previous | Index | Next >> Copyright © 2002 Daniel Allen