If you add a __DATA__ segment at the end, and rewind the DATA handle, you can read your code:
use strict; use warnings; seek( DATA, 0, 0 ); print while( <DATA> ); __DATA__
In reply to Re: Reading the script code from itself
by hdb
in thread Reading the script code from itself
by v_melnik
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |