Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Trying to compare a string...

by moritz (Cardinal)
on Oct 18, 2013 at 08:26 UTC ( #1058723=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %genre_map = (
        'Science Fiction' => 'Sci-Fi & Fantasy',
    ...
    );
    
    my $genre = $genre_map{$genres[0]} // $genres[0];
    
  2. or download this
    use v6;
    my $genre;
    ...
        $genre = @genres[0];
    }
    say $genre;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2014-09-16 22:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (51 votes), past polls