Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Welcome to the Monastery
 
PerlMonks  

Re: Delete Trailing Characters

by olus (Curate)
on Feb 21, 2008 at 18:39 UTC ( #669338=note: print w/ replies, xml ) Need Help??


in reply to Delete Trailing Characters

@file_names = map{ substr($_, 0, -4) } @file_names; # alternativelly @file_names = map{ /(.*).{4}/ } @file_names;


Comment on Re: Delete Trailing Characters
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (10)
As of 2013-06-19 23:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many continents have you visited?









    Results (675 votes), past polls