Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: Simple Perl If Else Statement

by Lennotoecom (Pilgrim)
on May 16, 2014 at 13:54 UTC ( [id://1086314]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Simple Perl If Else Statement
in thread Simple Perl If Else Statement

Ummmm, like this?
while (@a = split /\t|$/, <DATA>){ next if $a[0] =~ /\D/; print "K: $a[0]\n" and next if $a[1] == $a[2]; print "K: -$a[0]\n" and next if $a[1] == $a[3]; print "author didn't specify that option\n"; } __DATA__ K I B S 1 2 2 3 2 4 3 4 3 5 5 2 4 9 1 3

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-04-24 23:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found