Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Parens mess up regex substitute

by Crackers2 (Parson)
on Jan 26, 2012 at 16:14 UTC ( #950154=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    (my $name = $str) =~ s{.*/}{};      # basename
    
  2. or download this
    (my $path = $str) =~ s{$name}{};
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://950154]
help
Chatterbox?
[Your Mother]: Sure, sure. I had a cat as a kid who always slept on top of the fridge because of the heat dissipation up the back.

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (9)
As of 2017-12-18 15:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (492 votes). Check out past polls.

    Notices?