Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

by AnomalousMonk (Bishop)
on Sep 25, 2017 at 23:19 UTC ( #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? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2021-12-06 06:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (31 votes). Check out past polls.

    Notices?