Help for this page

Select Code to Download


  1. or download this
    my $cmd = 'south';
    my @array = ( 'north#library , 'south#kitchen', 'east#hallway');
    my ($location) = map {m/\#(.*?)$/; $1} grep {m/^$cmd\#/} @array || pri
    +nt "some error message";
    
  2. or download this
    my @possibilities = map {} grep {} @array || ...