On Fri, Dec 20, 2002 at 09:13:41PM -0000, Rob Dixon wrote: > Please explain about that useful-looking command-line syntax. It looks to be > equivalent to > > use O qw(Deparse -p);
Yep. that's it. > but I've never heard of module 'O'. O.pm is the interface to the B compiler modules. In this case we are running B::Deparse. The -p option gives us extra parentheses to make the parsing obvious. perldoc O > Is it anything to do with the Powerpuff > Girls' Chemical X? I had to google for that. My guess is no, but I can't be sure. Are the Powerpuff Girls anything to do with the Go-Go's? > Puzzled, Likewise ;-) > "Paul Johnson" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > > But you do actually need the parens in the index call, otherwise the > > precedence is wrong: > > > > $ perl -MO=Deparse,-p -e '@match = grep { index $_, $string >= 0 and $_ ne > $string } @array;' > > (@match = grep({(index($_, ($string >= 0)) and ($_ ne $string));} > @array)); > > -e syntax OK -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]