Syntactic Confectionery Delight | |
PerlMonks |
Re^8: File::Random module (McA)by tobyink (Canon) |
on Apr 02, 2013 at 16:17 UTC ( [id://1026731]=note: print w/replies, xml ) | Need Help?? |
The following crawls a directory and prints out random file names. Each file has a 1 in 10 chance of being selected.
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
In Section
Seekers of Perl Wisdom
|
|