in reply to two dice question
my @dicearray = qw/$dice1 $dice2 $dice3 $dice4 $dice5 $dice6/;
means
my @dicearray = ('$dice1', '$dice2', '$dice3', '$dice4', '$dice5', '$d +ice6');
You want
my @dicearray = ($dice1, $dice2, $dice3, $dice4, $dice5, $dice6);
By the way, you can skip the intermediate vars entirely:
my @dicearray = ( <<done, ############## # # # # # # # # # # # ############## done <<done, ############## # # # # # # # # # # # # ############## done ... );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: two dice question
by ysth (Canon) on Jul 17, 2007 at 06:09 UTC | |
by Fletch (Bishop) on Jul 17, 2007 at 17:05 UTC | |
by ikegami (Patriarch) on Jul 17, 2007 at 17:12 UTC | |
by Fletch (Bishop) on Jul 17, 2007 at 17:18 UTC | |
by ikegami (Patriarch) on Jul 17, 2007 at 17:54 UTC | |
| |
by TGI (Parson) on Jul 17, 2007 at 17:19 UTC |