![]() |
|
XP is just a number | |
PerlMonks |
comment on |
( #3333=superdoc: print w/replies, xml ) | Need Help?? |
if ($path == 0)
Remember, you said $path was: 'hiec/by/mlor/kkss23/dndd@@mani/css.cpp/0'. Try something like this:
Note that what you used never captured the resulting match (that is, it was used in void context and had not side effects). Using the parentheses like I do, it sets the $1 variable (see perlre) -- note, too, that it also returns the value which I check, so you can say something like $my_value = ...regex_here... In reply to Re: checking the end of line
by dimmesdale
|
|