Re: simple include

2004-05-04 Thread J Adam Latham
Try removing "my" from all the variables in your module ... You're privatizing them to your module thereby excluding them from your external program ... At least that's my guess! :^) HTH, Adam On Tuesday 04 May 2004 12:12 pm, Andrew Gaffney wrote: : I'm working on a small Perl-based webapp. I

Re: random number between x and y

2003-09-20 Thread J Adam Latham
This should work ... #!/usr/bin/perl -w my $num = int (rand(10) +1); if ($num >= 5 and $num <= 10) { print "$num\n"; } else { print "Sorry ... \n"; } Hope that helps ... Adam On Saturday 20 September 2003 12:58 pm, dan wrote: : how is it possible to get a random number between x