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

Re: [FWP] Shortest scalarizer?



On Fri, Mar 30, 2001 at 12:19:01PM -0500, Steve Lane wrote:
> $ perl -le 'print ~~localtime'
> Fri Mar 30 12:18:03 2001

Treating $_ with impunity...

    perl -le 's..localtime.e.print'

Replace . with one of ;,&^|*+/ (among others?) to taste.

Hardly shorter, but possibly fun...

Wesley.

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