Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: perlrc for perl programs

by osunderdog (Deacon)
on Feb 06, 2009 at 17:23 UTC ( #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
Node Status?
node history
Node Type: note [id://741962]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2020-12-01 21:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (20 votes). Check out past polls.

    Notices?