in reply to Re:x2 Mathematics skills
in thread Mathematics skills
It's the same as using $_ - you can of course go and writemy $key; for my $k( keys %h ) { $key = $k if $h{$k} eq 'foo'; } if( defined $key ) { # ... }
but in my opinion, that is, if anything, less rather than more readable. It's more accomodating to a Perl beginner maybe, who would be a bit lost as to what's happening if the idiomatic forms were used, but it's a whole lot more laborous to read too. But that may just be my personal preference.while(defined($_ = <STDIN>)) { next unless $_ =~ /^something/; # ... }
Makeshifts last the longest.
|
|---|