Try this code:
$_ is assigned when using while as a statement modifier.print while (<DATA>); __DATA__ one two three four five six seven eight
But as you said, if $_ is a blank line...
JJ
In reply to Re: Re: Getting data out of __DATA__ and __END__
by jj808
in thread Getting data out of __DATA__ and __END__
by George_Sherston
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |