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

RE: [FWP] print thyself [golf]



> Clifford
> 
> > Try using $0 in a perl -e'...' and it won't work. (Plus you 
> might not have
> 
> > a file system...)
> 
> I don't use -e at all because NT4.0 doesn't do one liners 
> properly. For
> example:
> 
> D:\>perl -le'$_=q(print "\$_=q($_);eval");eval'
> Can't find string terminator "'" anywhere before EOF at -e line 1.

C:\>perl -le"$_=q(print qq[\$_=q($_);eval]);eval"
$_=q(print qq[\$_=q($_);eval]);eval

Think of playing on NT as having a 2 handicap :))  (if I'm not totally
wrong about what a 2 handicap means; I've only played golf once, and
it wasn't pretty...)
-- 
Mike


==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe