OT: $0

Adrian Lai perl at loathe.me.uk
Sun May 17 00:41:49 BST 2009


2009/5/17 Andy Armstrong <andy at hexten.net>:
> So the question becomes what's the shortest one-liner that will cause what
> ps displays to be the same as what $0 contains?
>
> My first attempt is
>
> ( $0 .= ' ' ) =~ s/ $//;

$0.='';

would appear to be sufficient to replicate.

Adrian.


More information about the london.pm mailing list