Perl Monk, Perl Meditation | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hey the join function works but not in the way I expected it to work.
print join "\n", @out; works just fine and inserts the newline seperator just like I want it to do while join "\n", @out; print @out; returns the chompd output the solution I figured out was @out = join "\n", @out; print @out; Is this the correct way to do this? Im trying to be as strict as possible and learn perl without using cheats and workarounds if you know what I mean. If I get the hang of properly structured programming I think it can cary over to whatever language I learn in the future. THANKS AGAIN EVERYONE! In reply to Re: Re: Re: I'm so confused
by st4k
|
|