Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Regex To Remove File Extension (rindex)

by kyle (Abbot)
on Dec 10, 2008 at 19:44 UTC ( #729492=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $n = 'foo.bar.txt';
    $n = substr $n, 0, rindex( $n, q{.} );
    

Log In?
Username:
Password:

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

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

    The best computer themed movie is:











    Results (124 votes), past polls