in reply to Re^3: Making a variable from a number in front of a string
in thread Making a variable from a number in front of a string
It is possible for the program to "read itself", i.e.:
To re-read the DATA section, you could use a tell() to figure out where the initial DATA byte is and then later seek back to that initial byte offset.#!/usr/bin/perl use warnings; use strict; ## DEMO of reading myself seek (DATA,0,0) or die "unable to seek $!"; print while <DATA>; __DATA__ some data would go here
|
|---|