bugsbunny has asked for the wisdom of the Perl Monks concerning the following question:
So that I dont do :my $line = qx{grep "^ARGV[0]\|" filename.txt}
do u get the idea..shortcuts :").. it there something in the core-packges that will work like this...open FILE, .... or die "blah...:$!"; ..grep it... close FILE;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: quick "open->close" file
by davorg (Chancellor) on Aug 06, 2003 at 11:50 UTC | |
by bugsbunny (Scribe) on Aug 06, 2003 at 13:56 UTC | |
by davorg (Chancellor) on Aug 06, 2003 at 15:22 UTC | |
|
Re: quick "open->close" file
by broquaint (Abbot) on Aug 06, 2003 at 12:25 UTC | |
by esh (Pilgrim) on Aug 06, 2003 at 15:30 UTC | |
|
Re: quick "open->close" file
by Aristotle (Chancellor) on Aug 06, 2003 at 15:15 UTC |