Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Complex if/else or case logic

by GrandFather (Saint)
on Mar 20, 2014 at 09:18 UTC ( [id://1079059]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $isA = $sender eq "sender A";
    my $isSpam = $subject =~ /\[SPAM\]/;
    my $hasSig = $body =~ /^--/;
    ...
    
  2. or download this
    if ($isA && $isSpam && $hasSig) {
        blowRaspberry($sender);
    } elsif ($isA && !$isSpam) {
        sendThankyou();
    } ...
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-24 04:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found