I need help, i am new in Perl if you can help me i have a question:
I want to know how to Random generate 5 number in (num1) outside of subroutine (some) Then 5 times calls the subroutine and then displayed the results.
sub some()
{
print "Enter a number: \n";
chomp (my $num1 = <STDIN>);
my...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.