Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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


Comment on Re: Array Manipulation
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2014-07-10 11:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (207 votes), past polls