Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

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]
[jthebarg]: case
[Eily]: :P, the search box is on the top left, or you can use Super Search
[Corion]: jthebarg: There is the switch keyword if you want that, but maybe a dispatch table is closer.
[Corion]: If by "case" you meant "case-insensitive ", see fc, uc and lc and perlop on the /i flag ;)
Corion waves to virtualsue
[virtualsue]: I have made a post for the first time in ... years

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (15)
As of 2017-09-26 13:41 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (295 votes). Check out past polls.