Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re^3: How do remove trailing data?

by samarzone (Pilgrim)
on Dec 24, 2010 at 07:32 UTC ( #878992=note: print w/replies, xml ) Need Help??

in reply to Re^2: How do remove trailing data?
in thread How do remove trailing data?

If you can overwrite the existing array values you can use following for the complete if block. You need not write if as the loop will run only if arrays are not empty

s/#\d+$// for (@changed_files, @newlyinsertedfiles, @branchedfiles);
- Samar

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://878992]
[TCLion]: Good Morning Monks, I am parsing logs and some date time formats are inconsistent. I am trying to make output all same format. What is the best way to convert a month(word) to month(number)?
[Corion]: TCLion: I'm not aware of a better way than manually building the hash, as all strptime incarnations I know have nasty edge cases

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (15)
As of 2017-03-23 14:38 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (287 votes). Check out past polls.