Exiting loop to higher level

2002-09-30 Thread Hughes, James
Hi folks, Quick question I left my books at home. I am sure I'e seen a way to next a loop to a higher level. Let me explain.. while { if ($_ =~ /something I need to find/) { if ($_=~/something that tells me I need to look elsewhere/) {

AW: Exiting loop to higher level

2002-09-30 Thread Hughes, James
: James Edward Gray II [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 30. September 2002 16:34 An: Hughes, James Cc: [EMAIL PROTECTED]; Jones, Jeremy Betreff: Re: Exiting loop to higher level Drop the double. 'next' is what you're looking for. James Gray On Monday, September 30, 2002, at 09:28 AM

File Compare

2002-09-24 Thread Hughes, James
Does anyone know if there is a function in perl thaat works like the fc (File Compare) function under dos or Unix? If so, plse let me know. Thanks, Jim -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

AW: regular expression

2002-08-13 Thread Hughes, James
Hi there, I am also just starting out in perl, but I would use the split funtion. It takes the variable a part at desired points just like awk. example: #!/usr/bin/perl # open (FH,/path/to/logfile);#Opens main log file

AW: How do you put a delay/pause/wait in Perl?

2002-08-13 Thread Hughes, James
try the command sleep for 5 min it would be sleep 300; (300 seconds) James Hughes DREGIS Dresdner Global IT-Services Gesellschaft mbH Bankbetrieb Server u. Geschäftsstellenservices (SH GM) Telephone +49 (0) 69 / 2 63 - 82653

AW: Script advice

2002-07-19 Thread Hughes, James
OK, the change could be make in the following area: open MYMESSGELOGFILE, /var/log/messages; open MYSECURELOGFILE, /var/log/secure; my @messageLog = MYMESSGELOGFILE; my @secureLog = MYSECURELOGFILE; close MYMESSGELOGFILE; close MYSECURELOGFILE;

ps -ef under AIX Unix

2002-07-18 Thread Hughes, James
Hi there perl people of the world. I was wondering if anyone had a way to assign the process list from Unix to an array using perl internals, not the old @PSINFO=`ps -ef`; system call. Thanx bunches! Jim -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Windows NT / 2000 Services

2002-07-15 Thread Hughes, James
Can anyone tell me if , and where there is an ascii file that holds the current status of Windows NT and or 2000 services? This will help me greatly with a perl project. Thanks! Jim -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]