--- Paul Johnson <[EMAIL PROTECTED]> wrote:
> On Tue, Feb 11, 2003 at 09:45:32AM -0800, Jeff Westman wrote:
> 
> > This seems simple enough, but I can't get it to work.
> > 
> > I want to print out the cross-reference AND parsed version of a script. 
> I
> > can only get one of the modules at a time to work -- not both.
> > 
> > I have tried:
> > 
> > perl -Mmodule=Xref,Deparse myscript.pl
> > perl -MO=Xref,-MO=Deparse myscript.pl
> > perl -m module=Xref,Deparse myscript.pl
> > perl -MO Xref,Deparse myscript.pl
> > perl -M'module qw(Xref Deparse)' myscript.pl
> > 
> > The perldoc doesn't help much. 
> > 
> > 1-- This is probably too obvious, but what am I missing???
> 
> It's probably best, or at least most accurate, to run them one at a
> time but you can get fairly close with something like
> 
>   perl -MO=Xref -MO=Deparse myscript.pl

This works (thanks).  The Camel book says the above examples should work (but
don't seem to).

> > 2-- What does the "-MO" do, as opposed to "-M" (cant find any
> documentation
> > on that)
> 
> It uses the O module - O.pm.  O is the frontend to the Perl compiler.
> 
>   perldoc O

Oh!  =)

> Paul Johnson - [EMAIL PROTECTED]
> http://www.pjcj.net

Thanks again Paul.


Jeff

__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to