On Thu, Jun 21, 2001 at 11:31:21AM -0700, Chuck Ivy wrote:
> Now, looking up the substring function, it looks like if the original
> string were less than the size of my substring, it would pad my variable
> until it was 4096 characters.
> perl -wle 'foreach my $str(qw(foo foobarblahdoo))
{ print "[", substr($str, 0, 10), "]" };'
[foo]
[foobarblah]
The beauty of Perl is that you can try things very easily. You should learn
to do this.
Michael
--
Administrator www.shoebox.net
Programmer, System Administrator www.gallanttech.com
--