shelling out? - uname

Stray Taoist mwk at straytoaster.co.uk
Fri Dec 8 15:35:32 GMT 2006


On Fri, Dec 08, 2006 at 02:40:51PM +0000, Nicholas Clark wrote:
> Until someone lies:
> 
> $ perl -le '$^O = "emacs"; print $^O'
> emacs
> 
> On Fri, Dec 08, 2006 at 02:28:13PM +0000, Stephen Cardie wrote:
> 
> > POSIX::uname()
> 
> Seems a much better plan :-)

Until someone does:

perl -MPOSIX -e '*POSIX::uname = sub { "vi" }; print POSIX::uname'

:)

m.

-- 
http://weblog.straytoaster.co.uk/ # Gotta have a weblog. It is the law.
http://www.flickr.com/photos/straytoaster # All the cool kids have photostreams


More information about the london.pm mailing list