in reply to Truncate Data from MySQL
TIMTOWTDI (clumsier, but only slightly different):
#!/usr/bin/perl use strict; use warnings; # 777834 my (@copy, $copy, $i); @copy = split (/\s/, <DATA>, 16); for (0..14) { print $copy[$_] . " "; } __DATA__ Pull out only the first 15 words from the pubText field. This is where + I need suggestions, the code below does not work.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Truncate Data from MySQL
by mzedeler (Pilgrim) on Jul 07, 2009 at 18:51 UTC | |
by ww (Archbishop) on Jul 07, 2009 at 22:19 UTC | |
by mzedeler (Pilgrim) on Jul 09, 2009 at 19:59 UTC |