in reply to Getting data out of __DATA__ and __END__
Write while (<DATA>) { @ary = split (" ",$_) }; and split will find something in $_ to operate on. Of course, you're still only going to print the result of the last line of data. If that's a blank line...
—John
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Getting data out of __DATA__ and __END__
by jj808 (Hermit) on Sep 10, 2001 at 18:59 UTC |