laziness, impatience, and hubris | |
PerlMonks |
Reading a variable as a fileby Wiggins (Hermit) |
on Nov 23, 2007 at 19:44 UTC ( [id://652645]=perlquestion: print w/replies, xml ) | Need Help?? |
Wiggins has asked for the wisdom of the Perl Monks concerning the following question:
Background: I have read an entire file into a variable ($email); undef $/; open INPT, "afile"; $email=<INPT>;... Done massive substitutions all over the place with REGEXs and .csv file contents; Now I want to read (and remove) only line #1 from $email into a new variable ($subject); and then remove all "white-space only" lines until the first 'used'(non-space characters) line.
Desired Solution:
Back to
Seekers of Perl Wisdom
|
|