I didn't get a chance to try on Mac, FreeBSD and Solaris. Also I guess it has nothing to do with OS but how the shell/terminal/console/CMD interprets the syntax of the one liner.
Kindly correct me if I am wrong. BTW currently I use Windoze at work place and Ubuntu @ Home. So soon planning buy Macbook Pro. Hence wanted to know your feedback on Perl in Mac. Also not a relevant question to ask here - but has anyone tried installing Ubuntu on Mac. ;-) Cheers, Parag On Wed, Jan 20, 2010 at 9:21 AM, Steve Bertrand <st...@ibctech.ca> wrote: > Parag Kalra wrote: > > Here it comes - > > > > perl -e "BEGIN{print 'Birthday '} UNITCHECK{print 'Sweets '} CHECK{print > > '@ '} INIT{print 'my '} END{print 'Desk'}" > > > > Message is different but intention is same - Nasty & Nerdy :) > > > > Also it works only on Windows :( > > ...are you sure? On FreeBSD: > > % perl -e "BEGIN{print 'Birthday '} UNITCHECK{print 'Sweets '} > CHECK{print '@ '} INIT{print 'my '} END{print 'Desk'}" > > output: > > Birthday Sweets @ my Desk > > Cheers, > > Steve >