Using while ( -e $file )

2002-12-26 Thread Scot
Hi; Trying to write a file monitor for temp files using a while loop. The problem is that the file test does not seem to be re-evaulated each loop. If I delete the file after the loop has started it drops into the. SHRUNK test. I would think it would drop out of the while loop. while (

RE: Using while ( -e $file )

2002-12-26 Thread Scot
Seems like removing the quotes from TEMPFILE and SIZE did the trick. Thanks Kipp and Paul. If anyone wants the full sub leme know off-list. Scot -Original Message- From: Scot [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 4:32 PM To: Beginners Perl Subject: Using

RE: Nested hash creation help !

2003-01-21 Thread Scot
Thanks to Jose and all others who posted. I now have a working nested hash and a better understanding of them. Scot -Original Message- From: NYIMI Jose (BMB) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 7:34 AM To: [EMAIL PROTECTED] Subject: RE: Nested hash creation help

Reading mail headers from mqueue

2002-09-30 Thread Scot
using Mail:: like this ? Thanks Scot -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Time CHange Regulatr expression for 2am Crons ?

2002-10-25 Thread Scot
Hi Gurus and beginners; Anybody figured out a good regular expression to match all 2am crons ? match 0,10,20,30,40,50 2 * * * and 0 2 * * * Thanks Scot -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Text block switching or HTML Templating

2002-02-06 Thread Scot Robnett
I'd say an HTML template would be the way to go. You don't need mod_perl to do HTML templating. You can install HTML::Template, which is a module of the pure perly sort. Try http://sourceforge.net/cvs/?group_id=1075 or downloadable through PPM if you are using ActiveState Perl. Sc

RE: script was working now doesn't

2002-03-19 Thread Scot Robnett
ally contains a param named "contactform". Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] -Original Message- From: Teresa Raymond [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 2:31 PM To: [EMAIL PROTECTED] Subject: script was working now doesn't Th

DynaLoader and @INC HELP !

2002-05-17 Thread Scot Needy
Hi All, Still have a problem with this. In my perl code I can add to @INC one of 2 ways. use lib "/path/to/modules/SunOS/5.6" OR BEGIN { use POSIX qw(uname); my ($uname_s, $uname_r) = (POSIX::uname())[0,2]; unshift(@INC, "/path/to/modules/$uname_s/$uname_r" ); } If I use the BEGIN

SUMMARY:Re: DynaLoader and @INC HELP !

2002-05-17 Thread Scot Needy
what is in @INC by printing it in your perl code. print "\@INC is @INC\n"; @INC is /var/opt/modules/SunOS/5.6 ...etc On Fri, 2002-05-17 at 10:50, drieux wrote: > > On Friday, May 17, 2002, at 07:31 , Scot Needy wrote: > > > Still have a problem with this. > > In my

Re: Autoloader and DynaLoader on NFS - was Re: SUMMARY:Re:DynaLoader and @INC HELP !

2002-05-17 Thread Scot Needy
On Fri, 2002-05-17 at 12:01, drieux wrote: > > On Friday, May 17, 2002, at 07:59 , Scot Needy wrote: > > > I turned on debug in perl5/5.00503/sun4-solaris/DynaLoader.pm > > $dl_debug = 1; > > > > Turns out it WAS scanning /path/to/modules/SunOS/5.6 > > Ju

Whats the best way to convert a nested hash to SQL ?

2002-05-24 Thread Scot Needy
Hi again all; Man this list is busy OK I am back to Solaris::Kstat Kstat is a Nested hash which can be displayed something like this foreach my $m (sort(keys(%$ks))) { foreach my $i (sort(keys(%{$ks->{$m}}))) { foreach my $n (sort(keys(%{$ks->{$m}->{$i}}))) {

Nested hash creation help !

2003-01-20 Thread Scot Needy
Hi; Trying to crate a nested hash from variables parsed out of log files but as I am a "Beginner Perl' coder it is failing terribly. The basic question is given you have 5 variables how would you make a nested hash. Thanks ! Scot I hope this is enough code to example

RE: Nested hash creation help !

2003-01-21 Thread Scot Needy
; print Dumper(\%time); José. > -Original Message- > From: Scot Needy [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 20, 2003 6:50 AM > To: Beginners Perl > Subject: Nested hash creation help ! > > > Hi; > > Trying to crate a nested hash from variables