Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Match operator fails for elements 100 and higher

by Crackers2 (Parson)
on Nov 03, 2010 at 21:17 UTC ( #869326=note: print w/replies, xml ) Need Help??


in reply to Re^2: Match operator fails for elements 100 and higher
in thread Match operator fails for elements 100 and higher

Simpler workaround (or maybe it's the right thing to do in the first place) is this:

m/${mystrings[100]}/;

Replies are listed 'Best First'.
Re^4: Match operator fails for elements 100 and higher
by Utilitarian (Vicar) on Nov 03, 2010 at 21:47 UTC
    Yup, there is ambiguity as to whether the [999] is a character class or array index.

    Odd that the contents should determine how it's parsed though.

    print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://869326]
help
Chatterbox?
erix is not interested what the imbecile-in-chief has to say -- only what he will do
[GotToBTru]: that sounds fair to me
[davies]: I've just "approved" using syscalls in perl through inline c for at least the third time, but it still appears to me as unapproved. Is this just me?
[LanX]: erix: other side of the pond
[LanX]: davies: same problem
[Corion]: It had been approved as a Perl Monks Discussion. It should now be approvable into SoPW

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (16)
As of 2017-01-16 15:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (151 votes). Check out past polls.