Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: parse array to replace specific spaces with pipes

by mzedeler (Pilgrim)
on Jul 12, 2009 at 22:42 UTC ( [id://779417]=note: print w/replies, xml ) Need Help??


in reply to Re^2: parse array to replace specific spaces with pipes
in thread parse array to replace specific spaces with pipes

You can use next to skip the rest of an iteration in a loop:

while( ... ) { ... next if <something>; ... }

The <something> is treated as an expression. Expressions can be $variable =~ /<regex>/ or just a single variable, which evaluates to false if undef, 0 or ''.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-19 09:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found