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

Re: regex and getpwent()...

by bobione (Pilgrim)
on May 28, 2001 at 05:10 UTC ( #83670=note: print w/replies, xml ) Need Help??

in reply to regex and getpwent()...

I am not sure that m// match empty ("") value. It matches everything.

BobiOne KenoBi ;)

Replies are listed 'Best First'.
Re: Re: regex and getpwent()...
by japhy (Canon) on May 28, 2001 at 05:25 UTC
    It only matches everything until you've matched anything. (Think that's cryptic?)
    for (qw( a b403 c<<>_# d84930 e89293->><{}W )) { print if //; } "foo" =~ /foo/; for (qw( a b403 c<<>_# d84930 e89293->><{}W )) { print if //; }

    japhy -- Perl and Regex Hacker
      Ouch! That's quite nasty looking...
      Looks like I really need to get my head around regular expressions a bit better! 8)

      Thanks for the help.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://83670]
and the monks are chillaxin'...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2018-07-19 23:19 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (421 votes). Check out past polls.