Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: please explain

by Flame (Deacon)
on May 21, 2003 at 20:22 UTC ( #259871=note: print w/replies, xml ) Need Help??


in reply to please explain (regular expression)

First it declares and scopes $k. Then it asks if $dir has a value (in other words, it's not undef). If that is true it then tries to capture everything up to a slash (careful, this looks unpredictable to me, might pass over multiple /'s) and place it into $1. If that succedes, it sets $back_one to $1.

Hope this helps.



My code doesn't have bugs, it just develops random features.

Flame ~ Lead Programmer: GMS (DOWN) | GMS (DOWN)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://259871]
help
Chatterbox?
[LanX]: hm just read an article on heise.de claiming that RPerl is 250 times faster. ... it's that even possible?
[marto]: under certain circumstances perhaps
[RonW]: as I understand it, RPerl "compiles" a subset of Perl to C, so I would expect the final executable to run a lot faster

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2017-05-22 20:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?