- or download this
#!/usr/bin/perl -w
my @movement = (0,1);
...
elsif (@movement == (0, -1)) {$from = "south"}
# elsif (@movement == (-1, 0)) {$from = "west"}
print "\$from = <$from>\n";
- or download this
my @movement = (0,1);
my $from = "";
...
elsif (@movement == (0, -1)) {$from = "south"}
# elsif (@movement == (-1, 0)) {$from = "west"}
print "\$from = <$from>\n";
- or download this
Useless use of a constant in void context at ./t.pl line 4.
Useless use of a constant in void context at ./t.pl line 4.
$from = <north>
- or download this
#!/usr/bin/perl -w
my @movement = (0,1);
...
elsif (@movement == (0, -1)) {$from = "south"}
# elsif (@movement == (-1, 0)) {$from = "west"}
print "\$from = <$from>\n";
- or download this
$from = <north>
- or download this
#!/usr/bin/perl -w
my @movement = (0,1);
...
if (@movement == (1, 0)) {$from = "east"}
if (@movement == (-1, 0)) {$from = "west"}
print "\$from = <$from>\n";
- or download this
Useless use of a constant in void context at ./t.pl line 5.
$from = <>
- or download this
#!/usr/bin/perl -w
my @movement = (0,1);
...
if (@movement == (0,1)) {$from = "east"}
print "\$from = <$from>\n";
- or download this
$from = <>