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 reply to Re: Space character when using push function on arrays
by nvivek
in thread Space character when using push function on arrays
by iamravikanth
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |