Pardon the duplicate post, but it seems that the default settings on the site are making my reply invisible to most users.
What happens when you print just the $name variable outside of the format statement? Place this in the code before or instead of the write:
print "Name is: $name that's all.\n";
It could be that the split is placing the wrong value into the @data array which subsequently gets copied into $name.
Let us know if that sheds any light.
In reply to Re: Repeat print problem
by pzbagel
in thread Repeat print problem
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |