Nothing to do with your problem with Foreach Loops but I'm wondering why you are concatenating two strings in your print statement when one would do. This
print "foreach takes :"."$_\n";
could be written
print "foreach takes :$_\n";
Cheers,
JohnGG
In reply to Re: foreach problem with shift
by johngg
in thread foreach problem with shift
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |