in reply to Re: Re: quandery about a grep statement
in thread quandery about a grep statement
perl -we 'use strict; %_ = %ENV; print $_{TERM},$/' perl -we 'use strict; %@ = %ENV; print $@{USERNAME},$/' perl -we 'use strict; %% = %ENV; print $%{HOME},$/'
Yes, I'm ashamed that I know about those. =) Also, just for fun, try this one on:
perl -we 'use strict; %$ = %ENV; print ${$}{SHELL},$/' # note the extra {} on this one to keep the parser from # making the normally correct left turn of ${${SHELL}} and # crying that $SHELL isn't declared...
--
$you = new YOU;
honk() if $you->love(perl)
|
|---|