in reply to Beware of global! And bless the local!
Here's a neat little idiom:
my $key_string = do { use warnings qw(FATAL); local(@ARGV,$/) = ($file +); <> };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Beware of global! And bless the local!
by haukex (Archbishop) on Dec 12, 2019 at 20:37 UTC |