Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: perlrc for perl programs

by osunderdog (Deacon)
on Feb 06, 2009 at 17:23 UTC ( [id://741962]=note: print w/replies, xml ) Need Help??


in reply to perlrc for perl programs

You could put your desired items in a perl module and then use -M command line option to include them. This would be explicit. It sounds like you're looking for something that's implicit?

Example: mystuff.pm

use strict; use Data::Dumper; use Scalar::Util; 1;

test.pl

print Scalar::Util::reftype("foo"); print Dumper("this is some raw text");

invocation:

~/src/perl$ perl -Mmystuff test.pl $VAR1 = 'this is some raw text';

Still looking... Still searching...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://741962]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-25 18:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found