Hi, Monks- Could someone explain why this code works perfectly in Perl v5.6.1 but not in v5.20.1? It imports a text file of names of bills and their due dates and converts to hash: CITI 5 AMEX 10 CHASE 20 Number on right becomes key, name is value:
open(my $fh, '<', 'c:/003/MYBILLS.TXT'); while(<$fh>) { my %hash = map{ chomp; split/ /; $_[1] => $_[0];} <$fh>; print$hash{20}; #prints CHASE
In v5.20.1 nothing will print here. But why? </p?
In reply to newer Perl version rejects this by ggadd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |