Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^5: Printing an array using while loop

by AnomalousMonk (Archbishop)
on May 19, 2020 at 23:06 UTC ( [id://11116953]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Printing an array using while loop
in thread Printing an array using while loop

Why join? If you're already generating the array elements with a terminating newline, why not just:

c:\@Work\Perl\monks>perl -wMstrict -e "my @ra = (qq{bat\n}, qq{ball\n}, qq{glove\n}); print @ra; " bat ball glove


Give a man a fish:  <%-{-{-{-<

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11116953]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-19 05:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found