Re: word count (limit) in a scalar...

2002-07-16 Thread Mike(mickalo)Blezien
s, and trash the rest. my $text = "some really long line of character"; my $trimmed_text = substr($text,0,200); this will take the first 200 characters of the $text scalar and assign it to the $trimmed_text. I think this is what your looking for. :) Mike(mickalo)Blezien =-=-=-=-=-=

Re: Perl constants with modules

2002-07-16 Thread Mike(mickalo)Blezien
ch time. >> >>First, is this a good idea? >> >>Second, which sytax (in your opinion) should I use? >> >>$CDMA::USER = "myusername"; >> >>or >> >>use constant USER => "myusername"; >>(called like CDMA::USER.co

Re: perl modules?

2002-07-15 Thread Mike(mickalo)Blezien
>>END { } >> >> >>script.pl >> >>use strict; >>$|++; >> >>push (@INC, '.'); >> >>use FileHandle; >>use Script; >> >>use vars qw( >> $msl %msl >&g

Re: deleting files

2002-07-15 Thread Mike(mickalo)Blezien
: >> >>unlink glob(".dat"); >>unlink glob(".p1"); >> >>I have thought of popping out to the operating system as well, and deleting >>files as well, but would rather stay in Perl. >> >>Any help woul