Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Uncommon but Useful Perl Command Line Options

by borisz (Canon)
on Jan 28, 2004 at 19:48 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://324758]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-03-29 05:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found