On Tue, Feb 10, 2009 at 21:16, Chas. Owens <chas.ow...@gmail.com> wrote: > > > On Feb 10, 2009, at 19:51, Rob Dixon <rob.di...@gmx.com> 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. >
Drat, I am wrong. I could have sworn that worked, but print is forcing it to be treated as a file handle. -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/