On Jan 4, 2008 12:33 PM, oryann9 <[EMAIL PROTECTED]> wrote:

> if ( $fs =~ m|\x2f{1}?|g ) {  ##-- if "/" is matched --#

That's a pretty hard way to write the pattern m#/#. And it's wrong,
too, since you have a /g modifier on it. Or maybe I'm misunderstanding
what you're doing. Did you mean to use the scalar m//g?

> elsif ( $fs !~ m|\/\w+| ) {

This elsif always fires, doesn't it? I can't see how you're thinking
that this pattern could match if the first didn't find a forward
slash. Is there something else going on here?

Hope this helps!

--Tom Phoenix
Stonehenge Perl Training

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to