http://qs321.pair.com?node_id=1088887


in reply to Re: Simple awk question
in thread Simple awk question

perl -e 'print (split /\s+/, "'$variable'")[0]'

nested quotes? :)

update

and the brackets belong to print , (...)[0] won't work.

Cheers Rolf

(addicted to the Perl Programming Language)