|
|
| "be consistent" | |
| PerlMonks |
Re: Space character when using push function on arraysby nvivek (Priest) |
| on Jul 15, 2010 at 12:13 UTC ( #849764=note: print w/ replies, xml ) | Need Help?? |
|
You're getting that output because the value $" by default is space.That's why,you're getting 0\n then space which $" is a delimiter and then 1\n followed by space and it continues. If you want to check it,you change the value of $" and check it.You'll understand.To know better about these kind of special variables you refer this URL. http://www.tutorialspoint.com/perl/perl_special_variables.htm
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||