On Feb 10, 2009, at 19:51, Rob Dixon <[email protected]> wrote:

Chas. Owens wrote:

perl -MIPC::Open2 -le 'print ok'

That will be

 perl -MIPC::Open2 -le 'print "ok"'

Rob

While that will work, it isn't necessary. The strict pragma is not in force, so the bareword ok is the same as the string "ok" (since there are no functions or filehandles with that name in scope). I wouldn't advise doing it on a regular basis, but for something as simple as this, I believe it is fine. Most of the time I just say something like

perl -MModule -e 0

But I thought a bit of positive feedback would be useful here.

--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to