Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Array Manipulation

by Corion (Pope)
on Oct 08, 2013 at 08:25 UTC ( #1057373=note: print w/replies, xml ) Need Help??


in reply to Array Manipulation

Something like this?

use 5.012; my @files= qw( 1.fi 2.fo 3.fum 4.fo.tar.gz ); s!\.[^.]+$!! for @files; say $_ for @files; __END__ C:\>perl -w tmp.pl 1 2 3 4.fo.tar

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1057373]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2017-04-27 06:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (501 votes). Check out past polls.