What can be done with foreach can usually be done on fewer lines with map...
$string=join'',map{$_ x rand 8}split//,$string;$;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/
In reply to Re: Function over all letters in a string
by jonadab
in thread Function over all letters in a string
by Jobby
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |