Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: If statement seems to ignore elsif and skips to else

by AnomalousMonk (Archbishop)
on Sep 25, 2017 at 23:19 UTC ( [id://1200076]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $re_start = qr/../; #match string begining with two of anything (0 
    +or more times each!)
                           # but still a potential problem: would match a 
    +null string)
    ...
                        # (preceding the comma in your initial set of rege
    +xen) 
                      # with anything other than two instances of somethin
    +g
                     #  or another
    
  2. or download this
    c:\@Work\Perl\monks>perl -wMstrict -le
    "my $rx_dotdot = qr{ .. }xms;
    ...
       if '' =~ m{ $rx_counted? }xms;
    "
    C: match empty string: counted, quantified
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-03-29 10:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found