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

Re^3: remove last column of tab-delimited file

by flowdy (Scribe)
on Jul 22, 2016 at 18:46 UTC ( [id://1168384]=note: print w/replies, xml ) Need Help??


in reply to Re^2: remove last column of tab-delimited file
in thread remove last column of tab-delimited file

Why don't you try it instead of asking? ;)

I would use splice @header_for_table1, -1 without assignment, as splice returns what it has removed from an array. Likewise pop cuts the last element off an array and returns it, but in contrary what you want is all items but the last, don't you?

UPDATE: pop() without assignment is the same like splice(@array, -1), yeah.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-20 01:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found