amoura has asked for the wisdom of the Perl Monks concerning the following question:
hello guys , I have this pice of my script:
I have problem with the grep , It doesn't like or not allow me to grep a value inside an array , is threre away to go around this , once I excuted , I get no error but no file is generated for the output "otherblds2.txt".open(OUTother, "< C:/Perl/MyScripts/tmp.txt") || die "Could not open file : $!\n"; my @hold2; while (<OUTother>) { push(@hold2, $1) && last if (m/(\w+\.bld)/); } `egrep -wn @hold2 nbsssbs//esel/bld/*.bld nbsssbs/sbc/bld/*.bl +d nbssbts/btsc/bld/*.bld > $temp/otherblds2.txt `; close(OUTother) or die("Can't close file: $!");
2002-07-09 Edit by Corion : Added formatting
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: grep and array
by Aristotle (Chancellor) on Jul 09, 2002 at 15:20 UTC | |
Re: grep and array
by fglock (Vicar) on Jul 09, 2002 at 14:17 UTC |
Back to
Seekers of Perl Wisdom