Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: using hash to compare with string and print the string

by hippo (Bishop)
on May 15, 2019 at 14:35 UTC ( [id://11100020]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -cw 11100018.pl 
    Can't locate stricts.pm in @INC (you may need to install the stricts m
    +odule) (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 
    +/usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/
    +perl5 /usr/share/perl5 .) at 11100018.pl line 3.
    BEGIN failed--compilation aborted at 11100018.pl line 3.
    
  2. or download this
    #!/usr/bin/env perl 
    use strict;
    ...
            print "array element: $key = $hash{$key} inside \%hash\n";
        }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11100020]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (7)
As of 2024-04-23 18:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found