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

Re^3: Problem with <> and regex

by golux (Pilgrim)
on Mar 11, 2014 at 15:23 UTC ( #1077860=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Problem with <> and regex
in thread *fixed*Problem with <> and regex

How exactly is it "crashing your script"? Is it providing any error message? Any output?

Edit:   I just noticed that you're passing "$words", but then operating on "$word", which is probably your error. Granted you probably cut and paste what I wrote (so the error is actually mine -- sorry!). Change "$word" to "$words".

You should also have:

use strict; use warnings;
at the top of your script (maybe you do, and that's why your script was failing). If not, add them; they'll tell you what you're doing wrong in exactly this type of situation.
say  substr+lc crypt(qw $i3 SI$),4,5


Comment on Re^3: Problem with <> and regex
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1077860]
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: (9)
As of 2014-10-22 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (114 votes), past polls