Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
    foreach ( sort keys %c ) {
        print "Key : $_ => $c{$_}\n";
    }
    
  2. or download this
    $hash{key} = undef; #defined $hash{key} false, exists $hash{key} true
    
  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"'