Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Regex matching and setting variables

by Errto (Vicar)
on Aug 09, 2007 at 01:23 UTC ( #631442=note: print w/ replies, xml ) Need Help??


in reply to Regex matching and setting variables

I would use split. You can use the special split on whitespace to turn your columns into elements of a list like so

my @cols = split ' ', $type;
and then go from there. For your second question, it depends. Are you sure it's strict that's complaining and not the taint checker? What does the code look like for "ENV={PATH}" that you mentioned?


Comment on Re: Regex matching and setting variables
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (13)
As of 2014-12-22 14:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (119 votes), past polls