Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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

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 lurking in the Monastery: (16)
As of 2016-09-30 14:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (569 votes). Check out past polls.