Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Wanted: Error Documentation

by robin (Chaplain)
on Mar 21, 2006 at 17:42 UTC ( #538239=note: print w/ replies, xml ) Need Help??


in reply to Wanted: Error Documentation

In case you haven't spotted it yet, your actual problem is that you have used qw instead of m or qr to quote the regex.

$ perl -e 'print "hello" =~ qw{foo bar}' Too many arguments for regexp internal reset at -e line 1, at EOF Execution of -e aborted due to compilation errors.

(You're literally passing too many arguments to the regex matcher, i.e. a list of strings rather than the single regex that it expects.)


Comment on Re: Wanted: Error Documentation
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2015-07-04 22:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls