Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: printing out tabs between each element in an array

by McDarren (Abbot)
on Feb 18, 2008 at 13:11 UTC ( #668526=note: print w/replies, xml ) Need Help??


in reply to printing out tabs between each element in an array

Indeed there is. You can use \t to represent a tab. So probably what you want is something like (untested):
print ARRAY_CONTENTS join("\t", @cols_for_row), "\n";
Update: added newline

Cheers,
Darren

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2023-09-24 06:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?