Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: regex and getpwent()...

by bobione (Pilgrim)
on May 28, 2001 at 05:10 UTC ( [id://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?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://83670]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2024-04-18 16:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found