in reply to Re^3: get data from the database -CGI
in thread parsing a txt file
while(<DATA>) { print if (/line1/ ... /line5/); } __DATA__ line1 line2 line3 line4 line5
Outputs all the lines, including the start and end "markers". So, unless I am doing something wrong, I don't see how this is any different from the .. operator I have used in the past (at least under 5.8)?
Reason I didn't just try it (which I should have anyway, admittedly) is that I thought myself and others would benefit from a little further explanation.
Guess it's RTFM time for me...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: get data from the database -CGI
by mjscott2702 (Pilgrim) on Nov 10, 2010 at 09:22 UTC | |
by choroba (Cardinal) on Nov 10, 2010 at 11:10 UTC |