in reply to chopping lots of characters
Ormy $i = 4; chop $string while $i -- && length $string;
although the latter might want to chop an empty string (but only once).my $i = 4; 1 while $i -- && defined chop $string;
Abigail
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: chopping lots of characters
by Anonymous Monk on Jun 24, 2004 at 11:52 UTC |