use Modern::Perl qw/2014/;
open my $OUT, '>', './random.txt' or die "Could not open the output fi
+le: $!";
say $OUT 91200000000 + int( rand(100000000) ) for 1 .. 1000;
Now check the documentation for
open,
print and
say. If there is anything you do not understand, come back here and ask.
These are really basic functions you will need time and time again, so it is important you understand them completely.
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
My blog:
Imperial Deltronics