[Date Prev][Date Next][Thread Prev][Thread Next]
[Search]
[Date Index]
[Thread Index]
Re: [FWP] $_=$l[rand@l];
Kevin Reid wrote:
> Something to try shortening:
>
> @ARGV='iMax:Documents:Info:lwall-quotes.txt';$/='%%
> ';@l=<>;$_=$l[rand@l];chomp;print
Two characters:
@ARGV='iMax:Documents:Info:lwall-quotes.txt';$/='%%
';@l=<>;print$l[rand@l]=~/(.*)/
John Porter
==== Want to unsubscribe from Fun With Perl? Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
==== unsubscribe