in reply to Re: Truncate Data from MySQL
in thread Truncate Data from MySQL
Maybe a similar pattern could be applied in other circumstances as well.sub first_x { return wantarray ? ( split /\s+/, $_[0], $_[1] + 1 )[ 0 .. $_[1] - 1 ] : join ' ', first_x( @_ ); }
--
use JAPH;
print JAPH::asString();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Truncate Data from MySQL
by spazm (Monk) on Jul 08, 2009 at 20:01 UTC |