Think about Loose Coupling | |
PerlMonks |
Re: read a file twice...by Chmrr (Vicar) |
on Apr 15, 2002 at 03:58 UTC ( [id://159087]=note: print w/replies, xml ) | Need Help?? |
You can "read" it as many times as you want if you stuff it into an array just once:
Update: Oops. s/\@f/\@lines/g; as MeowChow pointed out to me. perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&V"+@( NO CARRIER'
In Section
Seekers of Perl Wisdom
|
|