Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: printing out tabs between each element in an array

by johngg (Canon)
on Feb 18, 2008 at 14:15 UTC ( #668555=note: print w/replies, xml ) Need Help??


in reply to Re: printing out tabs between each element in an array
in thread printing out tabs between each element in an array

Remember to restore the output field separator to its default value after you're done with the tab formating

One way to make it difficult to forget is to keep the localisation within the print statement by using a do block.

print ARRAY_CONTENTS do { local $" = "\t"; "@cols_for_row\n"; };

I hope this is of interest.

Cheers,

JohnGG

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2022-01-23 09:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (63 votes). Check out past polls.

    Notices?