Hi!
I was adding $i++ at the bottom of my loop just for a coding habit...
Years ago I was used to do it writing C programs but now, as Kevin said, I noticed that in Perl it doesn't matter...
Good to known!
Thanks again to all! ;-)
WOW THANKS! :-)
Now It works!
Actually I don't know why I did this my @rnum = @$aref; ... but for that I got lost too!!!
Probably I read something in some website and I got confused more than I was before...
I'm improving my skills, I'm quite rusty in programming but in my new job probably I...
Hi all!
I'm just beginning to learn Perl.
I'm doing some exercise and I found a problem with subroutines and references.
My question is:
Why in the following simple code I'm not able to obtain the value of the numbers increased of 1?
#!/usr/bin/perl
# I send the array’s reference to the...
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.