Now that will always seek to the beginning of the __DATA__ section.use vars '$DATA_POS'; $DATA_POS = tell *DATA unless defined $DATA_POS; # update - swapped args to be in correct order seek *DATA, $DATA_POS, 0; while(<DATA>) { ... }
_________
broquaint
In reply to Re: __DATA__ only one time
by broquaint
in thread __DATA__ only one time
by michaelg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |