Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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
Replies are listed 'Best First'.
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

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.

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 avoiding work at the Monastery: (11)
As of 2015-07-07 22:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls