in reply to New to Perl
- Where do you assign a value to $query?
To define %hash you need to map {$hash{$_}=1}@file_data
Update corrected my half asleep error, too little testing of code and coffee
print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: New to Perl
by chromatic (Archbishop) on Aug 04, 2011 at 05:32 UTC | |
by rolandomantilla (Novice) on Aug 04, 2011 at 20:21 UTC | |
by chromatic (Archbishop) on Aug 04, 2011 at 22:19 UTC | |
by rolandomantilla (Novice) on Aug 06, 2011 at 04:00 UTC | |
by rolandomantilla (Novice) on Aug 06, 2011 at 05:40 UTC | |
|
In Section
Seekers of Perl Wisdom