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

Re^3: If statement not working

by Marshall (Canon)
on Aug 26, 2012 at 01:17 UTC ( #989767=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $trimmedcolr = $colr;
    $trimmedcolr = 'BB' if $colr eq 'baby blue';
    ...
    $trimmedcolr = 'DP' if $colr eq 'dark purple';
    $trimmedcolr = 'HP' if $colr eq 'hot pink';
    $trimmedcolr = 'LP' if $colr eq 'light purple';
    
  2. or download this
    #!/usr/bin/perl -w 
    use strict;
    ...
    CY
    WCP
    DP
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2020-10-19 23:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (207 votes). Check out past polls.

    Notices?