http://qs1969.pair.com?node_id=324758


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.