Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Pushing a delimiter into an array?

by iguanodon (Priest)
on Mar 31, 2014 at 01:56 UTC ( #1080344=note: print w/replies, xml ) Need Help??

in reply to Pushing a delimiter into an array?

Do you really need the tabs in the array? If you just want to print the values separated by tabs do
print join("\t", @array);

Replies are listed 'Best First'.
Re^2: Pushing a delimiter into an array?
by rnaeye (Pilgrim) on Mar 31, 2014 at 02:18 UTC
    Great advice thanks. I just needed to print them!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1080344]
[ikegami]: That should be ${ $hash{$key} }[$_] because it's $a[$_] when you don't use a ref.
[oiskuu]: James, that's an array slice you have there (over some hash value)
[ikegami]: Mini-Tutorial: Dereferencing Syntax

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2017-04-27 19:27 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (512 votes). Check out past polls.