APM: One liner to get hash from an environment list

Mick mick at lowdrag.org
Wed Jan 21 22:02:42 CST 2004


* Mark Lehmann <mlehmann at marklehmann.com> [040121 21:35]:
> We used this in the meeting Wednesday evening.  I learned this from Bill
> Raty.
> 
> %config = map { /(.*?)=(.*)/ } qx(env);
> 

%config = %ENV;   #   Shorter line
-- 
-Mick                mick at lowdrag.org
OpenPGP info is in the X-mail headers
'$A=A;for(0..14689){$A++}print"\U$A"'



More information about the Austin mailing list