Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Uncommon but Useful Perl Command Line Options

by borisz (Canon)
on Jan 28, 2004 at 19:48 UTC ( #324758=note: print w/ replies, xml ) Need Help??


in reply to Uncommon* but Useful Perl Command Line Options for One-liners

Very nice, only the

-m is like use Module::module;
looks wrong to me. I think it is like use Module ();
Boris


Comment on Re: Uncommon but Useful Perl Command Line Options
Download Code
Re: Re: Uncommon but Useful Perl Command Line Options
by Sol-Invictus (Scribe) on Jan 28, 2004 at 20:02 UTC
    I'm open to suggestions for a simple way to show symbols not being imported from a module :) Originally I wrote:
    use Module(fuction); (-M) and use Module(); (-m)
    but I thought newbies would get confused.
Re: Re: Uncommon but Useful Perl Command Line Options
by hardburn (Abbot) on Jan 28, 2004 at 21:49 UTC

    Correct. Proof:

    $ perl -MO=Deparse -MCGI -e '' -e syntax OK use CGI; (); $ perl -MO=Deparse -mCGI -e '' -e syntax OK use CGI (); ();

    ----
    I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
    -- Schemer

    : () { :|:& };:

    Note: All code is untested, unless otherwise stated

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2014-07-13 23:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (252 votes), past polls