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

[FWP] Shortest scalarizer?



>From fwp-l@cfcl.com Fri Mar 30 14:00:28 2001
Received: from ashes.blackstar.co.uk (ashes.blackstar.co.uk [212.250.176.22])
	by cfcl.com (8.11.1/8.11.1) with SMTP id f2UM0NV03470
	for <fwp@technofile.org>; Fri, 30 Mar 2001 14:00:26 -0800 (PST)
	(envelope-from wesley-fwp@blackstar.co.uk)


Hi,

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