Don't ask to ask, just ask | |
PerlMonks |
Question about reading specific line in a text fileby palsy017 (Initiate) |
on Apr 04, 2009 at 06:03 UTC ( [id://755403]=perlquestion: print w/replies, xml ) | Need Help?? |
palsy017 has asked for the wisdom of the Perl Monks concerning the following question:
Good day.
I have a text file with info on line 76 that I would like to copy to a variable and print. But, I need to grab only part of the string that is returned. Here is the code:
The string returned is "SECTIONS 1-2-3-4 Offered Every Performance!" but I only need part of that, "SECTIONS 1-2-3-4" (with the dashes). I would appreciate your input!
Back to
Seekers of Perl Wisdom
|
|