![]() |
|
go ahead... be a heretic | |
PerlMonks |
Help with @LoLby zzspectrez (Hermit) |
on Nov 26, 2000 at 11:26 UTC ( #43357=perlquestion: print w/replies, xml ) | Need Help?? |
zzspectrez has asked for the wisdom of the Perl Monks concerning the following question: Ok.. Im pulling my hair out and it hurts.. Im going to stop.. I don't what to get premature baldness. Can someone enlighten me on some code.. Im writing some code that involves a couple List of a List. I noticed that when I was printing out one of the lists, I was getting spaces between the elements within the list items. So to figure out why, I wrote the following code to find what was causing the spaces. I made subroutines to simulate the different kind of ways I was using list data. It appears the spaces where caused by the interpolation of the variable in one of my print statements but I dont understand why. All the cases do what I was expecting except the last print of data from SUB4. Why is SUB4: 2nd way being printed differently then SUB4??
Here is the output:
Thanks for any help!
Back to
Seekers of Perl Wisdom
|
|