in reply to break up text string into 70 character long tokens
pointo1d@unforgiven:~/workspace/SVC-Class-Utils$ perl -MData::Dumper - +e '@t = "abcdefghijk" =~ /(.{0,2})/g;print Dumper \@t' $VAR1 = [ 'ab', 'cd', 'ef', 'gh', 'ij', 'k', '' ]; pointo1d@unforgiven:~/workspace/SVC-Class-Utils$
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: break up text string into 70 character long tokens
by AnomalousMonk (Archbishop) on Jan 08, 2009 at 03:38 UTC |