Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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);
--
Regards
- Samar


Comment on Re^3: How do remove trailing data?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (14)
As of 2014-08-20 16:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (119 votes), past polls