in reply to dynamic zcat and grep
I believe this line:
is running afoul of Perl's quoting convention; single quotes don't interpolate variable values. Try replacing the single quotes with double quotes.open INFILE, 'zcat $filename |' or print "ERROR - Could not open $fil +ename";
emc
" The most likely way for the world to be destroyed, most experts agree, is by accident. That's where we come in; we're computer professionals. We cause accidents."
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: dynamic zcat and grep
by clmcshque (Initiate) on Mar 21, 2006 at 22:38 UTC | |
by swampyankee (Parson) on Mar 22, 2006 at 03:29 UTC | |
by johngg (Canon) on Mar 22, 2006 at 11:23 UTC | |
by clmcshque (Initiate) on Mar 22, 2006 at 17:08 UTC | |
Re^2: dynamic zcat and grep
by Anonymous Monk on Oct 03, 2012 at 02:13 UTC |
In Section
Seekers of Perl Wisdom