On May 21, 2006, at 5:42 PM, Steffen Mueller wrote:
I think it sounds like a fine feature. PAR has so many
dependencies that I'm sure few would complain about one
more. :-) Nevertheless, here's a simplistic implementation to
pre-process the @ARGV list:
@ARGV = map {my $fh; /\A\@(.*)/ ? open($fh, "<", $1) ?
map {split} <$fh> : die $! : $_} @ARGV;
Yikes. Perl Golf :)
Fun aside, I would personally prefer a dependency over adding even
more hacks than there are in PAR already. No offense intended, but
this particular implementation wouldn't play well with quoted options.
I'm in favour of using the module even if it's just so that we can
point fingers if problems arise.
Yes, I should have added a smiley -- I'm in favor of the module too.
My code was just for fun.
Chris
--
Chris Dolan, Software Developer, Clotho Advanced Media Inc.
608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703
vCard: http://www.chrisdolan.net/ChrisDolan.vcf
Clotho Advanced Media, Inc. - Creators of MediaLandscape Software
(http://www.media-landscape.com/) and partners in the revolutionary
Croquet project (http://www.opencroquet.org/)