Help for this page

Select Code to Download


  1. or download this
    map{ /^$key/ and s/^$key//, $_ } grep( /^$key/, @ta))
    
  2. or download this
    my @ta = ("a x", "b y", "c z", 'b yyy');
    my $key = 'b';
    my @values = map / (.*)/, grep /^$key /, @ta;
    
    print "@values\n";
    
  3. or download this
    my ( $value) = map ...;