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

Re: new slurp module

Thread Previous | Thread Next
From:
Yitzchak Scott-Thoennes
Date:
October 26, 2003 14:28
Subject:
Re: new slurp module
Message ID:
20031026222804.GA800@efn.org
On Sun, Oct 26, 2003 at 01:49:40PM -0800, Yitzchak Scott-Thoennes <sthoenna@efn.org> wrote:
> On Fri, Oct 24, 2003 at 05:51:30PM +0200, Abigail <abigail@abigail.nl> 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.

Even without -i, I can't get nested <> loops to work at all reasonably.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About