Help for this page

Select Code to Download


  1. or download this
    if ( defined($hash{$key}) && hash{$key} =~ m/\w+/ ) {
        $hash{$key} = "Numbers: " . $hash{$key};
    }
    
  2. or download this
    #!/usr/bin/perl
    use warnings;
    ...
    }
    
    print $hash{$key}, "\n";
    
  3. or download this
    C:\>perl -cw bareword.pl
    bareword.pl syntax OK
    
    C:\>perl bareword.pl
    Can't locate object method "hash" via package "c" (perhaps you forgot 
    +to load "c"?) at bareword.pl line 13.