develooper Front page | perl.perl5.porters | Postings from October 2003

Re: new slurp module

Thread Previous | Thread Next
Yitzchak Scott-Thoennes
October 26, 2003 13:49
Re: new slurp module
Message ID:
On Fri, Oct 24, 2003 at 05:51:30PM +0200, Abigail <> wrote:
>   my @stuff = map {something ()} do {local @ARGV = "filename"; <>};

local @ARGV followed by <> isn't a safe thing to do unless you know
you aren't running under -i, which rules it out for reusable code.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About