Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: using 'use' conditionallyby pizza_milkshake (Monk) |
on Nov 07, 2002 at 03:09 UTC ( [id://210989]=note: print w/replies, xml ) | Need Help?? |
use eval and check $@... there's an example in The Perl Cookbook by O'Reilly perl -e'$_=q#: 13_2: 12/"{>: 8_4) (_4: 6/2"-2; 3;-2"\2: 5/7\_/\7: 12m m::#;s#:#\n#g;s#(\D)(\d+)#$1x$2#ge;print'
In Section
Seekers of Perl Wisdom
|
|