Help for this page

Select Code to Download


  1. or download this
    # strategy 1
    
    ...
        $var = "whatever"; # sets $var declared above to "whatever"
        
    }
    
  2. or download this
    # option 2
    
    ...
         $var = "whatever";
         return $var; # return is optional here, but makes what's going on
    + explicit.
    }
    
  3. or download this
    perl -e 'print "How sweet does a rose smell? "; chomp ($n = <STDIN>); 
    +$rose = "smells sweet to degree $n"; *other_name = *rose; print "$oth
    +er_name\n"'