CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
# in regex

 



jigneshjsoni
User

Feb 22, 2009, 1:31 PM

Post #1 of 2 (561 views)
# in regex Can't Post

(my $basename = $name =~ s#./##; # how come there is only one forward slash ?

What is the meaning of this regex ? Whenever we want to substitute values, we do =~ s/something/this/g ; there are two forward slashes in the regex. What kind of regex is this ?


KevinR
Veteran


Feb 23, 2009, 8:59 AM

Post #2 of 2 (551 views)
Re: [jigneshjsoni] # in regex [In reply to] Can't Post

You can change the regexp delimiters which are usually / but they can be many other characters as well.
-------------------------------------------------

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives