in reply to Re: Re: Re: Re: Using s///e and it just doesn't feel right
in thread Using s///e and it just doesn't feel right
#!/usr/bin/perl use strict; sub bob { map { print "$_$/" } @_; } my @thing = qw(tom dick harry); bob(@thing); print "============$/"; my @results = bob(@thing); print "We printed " . (scalar @results) . " items$/";
antirice
The first rule of Perl club is - use Perl
The ith rule of Perl club is - follow rule i - 1 for i > 1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
map vs foreach
by dash2 (Hermit) on Jun 20, 2003 at 17:07 UTC | |
by jsprat (Curate) on Jun 20, 2003 at 17:45 UTC | |
by dash2 (Hermit) on Jun 20, 2003 at 17:59 UTC | |
by antirice (Priest) on Jun 20, 2003 at 17:26 UTC |