[Chicago-talk] @ARGV while(<>)

Andy Lester andy at petdance.com
Sat Jan 5 08:45:28 PST 2008


On Jan 5, 2008, at 10:42 AM, Randal L. Schwartz wrote:

> Jay> [group] Is it just me, or does look funny to explicitly set  
> @ARGV?
>
> I do it all the time.  It's a convenient way to set up a 'while  
> (<>)' loop
> which in turn is a convenient way to read a series of files.


I also do it in ack, where I do the globbing for the Windows guys  
whose shell doesn't glob for them.

--
Andy Lester => andy at petdance.com => www.petdance.com => AIM:petdance






More information about the Chicago-talk mailing list