[EMAIL PROTECTED] wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


There are 4 ways to do what you want. The closest is probably 'do'

perldoc -f do

I would recommend the module approach as has already been suggested:

perldoc -f use
perldoc -f require


So far, "do" is looking like the best thing for the job... I've already
tried "use" and "require", but they're not what I'm wanting. I guess
I didn't explain my need well enough. Here is an example of things that
happen in this boilerplate:

<this is boilerplate.pm>
$a = $main::ARGV[1];
$b = $main::ARGV[2];
$c = function($a,$b);
..
</ boilerplate.pm>

So, having to use $main:: is really an ugly and dangerous solution, and

So is using $a and $b (see perlodoc -f sort) :)


hence why I really don't like the "use" or "require" solutions. "do"
seems a lot more appropriate in this scenario, but still not optimal.
This is stuff that I essentially want copied and pasted to the top of
each of the files that include boilerplate.pm. If I actually did that,
 I wouldn't need the $main:: everywhere.

I think if you explained what boilerplate.pm is and what id does that'd enable the list to assist you better...



Now, any other suggestions?


Thanks!
-----BEGIN PGP SIGNATURE-----
Note: This signature can be verified at https://www.hushtools.com/verify
Version: Hush 2.4

wkYEARECAAYFAkCNDrkACgkQFTb4XcgeHKtoYgCfZRyhjetI3l+paO9nBP2xPY3AjnsA
nihkhThGhMm9ynvzY4IXi2Vy3Oax
=XxfW
-----END PGP SIGNATURE-----




Concerned about your privacy? Follow this link to get FREE encrypted email: https://www.hushmail.com/?l=2

Free, ultra-private instant messaging with Hush Messenger
https://www.hushmail.com/services.php?subloc=messenger&l=434

Promote security and make money with the Hushmail Affiliate Program: https://www.hushmail.com/about.php?subloc=affiliate&l=427


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to