Walt Mankowski on Wed, 27 Aug 2003 07:40:22 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] finding the IP


On Wed, Aug 27, 2003 at 12:29:00AM -0400, Paul wrote:
> eric@lucii.org wrote:
> 
> >     qx|mail '$ADMIN' < /tmp/tempemail | ;
> > 
> >
> 
> What is "qx"?

qx is the "regex quote-like operator" that corresponds to backticks.
The following two lines are equivalent:

  qx|mail '$ADMIN' < /tmp/tempemail | ;
  `mail '$ADMIN' < /tmp/tempemail ` ;

They work like backticks in the shell -- i.e. the command is run in
the background, and the standard output is returned (though it's being
ignored in this example.

For more information, run "perldoc perlop" and look for the section on
"Regexp Quote-Like Operators".

Walt

Attachment: pgpT06jarPZP6.pgp
Description: PGP signature