Search Cards & Combos:
Home
Submit A Combo
Deck Builder
Forums
Picture Guess
Help
You are not logged in
[click to login]
-
[Join For Free!]
Forum Overview
>>
General Chat
Title: Perl
Date Posted:
Sat Jan/14/12 at 1:42am
Turbine
Posts: 10194
Joined: 26-Oct-09
I just spend 3.5 hours taking 4 pages of notes about learning Perl, because I couldn't sleep.
It's 2:45 here, but I'm not tired. . .
Anyway, I have a question. Can you use a scalar as a parameter for a hash? I'm trying but it's not working:
%mtgcombos = (
"Channel" => "Fireball",
"Sneak Attack" => "Emrakul"
);
print "Enter a card name: ";
$card = <>;
print $mtgcombos{$card};
This is just an example, of course.
[Edited by Turbine on 14/Jan/12 at 2:47AM]
Forum Overview
>>
General Chat
©2006-2023 MTGCombos.com