Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: regex to match a literal dot near end of string

by mdillon (Priest)
on Jul 18, 2001 at 20:35 UTC ( [id://97741]=note: print w/replies, xml ) Need Help??


in reply to regex to match a literal dot near end of string

i'm not willing to speculate about your gonads, but how about this code:
sub new_filename { my ($name,$platform) = @_; $name =~ s/(\.[^.]+)$/$platform$1/ or die "$name is an invalid patch name"; $name; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2024-03-28 15:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found