in reply to Re: Change the behavior of Perl's IRS
in thread Change the behavior of Perl's IRS
I want Perl to read a chunk at a time following that model, that's absolutely all I'm looking for. Like I mentioned before, I've written different scripts that utilized different methods but I'm exploring this particular avenue. I appreciate the attention to the problem though.{ $/ = 'myrecordsep'; while (<DATA>) { # do the actual work on text here } } __DATA__ myrecordsep field1=item1 field2=item2 myrecordsep ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Change the behavior of Perl's IRS
by BrowserUk (Patriarch) on Jul 14, 2007 at 20:10 UTC | |
|
Re^3: Change the behavior of Perl's IRS
by ikegami (Patriarch) on Jul 15, 2007 at 07:57 UTC | |
by BrowserUk (Patriarch) on Jul 15, 2007 at 08:04 UTC | |
by ikegami (Patriarch) on Jul 16, 2007 at 02:31 UTC |