in reply to use, require, do or what?
The "what" you are looking for is the mystical map{eval(readline!open(!((*{!$_},$/)=\$_)))} operator. Example (given $variable1 = "SOME CALCULATION"; in Library.pl):
(based on theDamian evilness, improved by ysth)$ perl -w my $variable1; map{eval(readline!open(!((*{!$_},$/)=\$_)))} "Library.pl"; print "$variable1\n"; __END__ SOME CALCULATION
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: use, require, do or what?
by TGI (Parson) on Jul 30, 2008 at 22:34 UTC |