Re: hashes and loops

2005-06-15 Thread Dave Gray
On 6/14/05, Karyn Williams [EMAIL PROTECTED] wrote: Below is code that I found on the web that I slightly modified. I am trying to create a script to remove from a file (tlist) the items in another file (tnames). This works but I have multiple files (tlist) I need to check against. I'm not

Re: hashes and loops

2005-06-15 Thread John W. Krahn
Karyn Williams wrote: [snip] So, first question is why is this happenning ? Then how do I fix it ? What is happening that you didn't want to happen? What is NOT happening that you did want to happen? http://www.catb.org/~esr/faqs/smart-questions.html Also, there are just a handful

Re: hashes and loops

2005-06-15 Thread Karyn Williams
At 07:42 AM 6/15/05 -0700, you wrote: Karyn Williams wrote: Also, there are just a handful of files BUT they are ever changing, so I would like to not list the statically in the code. but this would work: chomp( my @lists = qx(ls /usr/local/dir) ); But this would work a lot better: my

Re: hashes and loops

2005-06-15 Thread John W. Krahn
Karyn Williams wrote: At 07:42 AM 6/15/05 -0700, you wrote: Karyn Williams wrote: Also, there are just a handful of files BUT they are ever changing, so I would like to not list the statically in the code. but this would work: chomp( my @lists = qx(ls /usr/local/dir) ); But this would

hashes and loops

2005-06-14 Thread Karyn Williams
Below is code that I found on the web that I slightly modified. I am trying to create a script to remove from a file (tlist) the items in another file (tnames). This works but I have multiple files (tlist) I need to check against. I'm not sure how/where to put the loop and would appreciate any

RE: hashes and loops

2005-06-14 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Karyn Williams wrote: Below is code that I found on the web that I slightly modified. I am trying to create a script to remove from a file (tlist) the items in another file (tnames). This works but I have multiple files (tlist) I need to check against. I'm not sure how/where to put the loop

Re: hashes and loops

2005-06-14 Thread Jeff 'japhy' Pinyan
On Jun 14, Karyn Williams said: Below is code that I found on the web that I slightly modified. I am trying to create a script to remove from a file (tlist) the items in another file (tnames). This works but I have multiple files (tlist) I need to check against. I'm not sure how/where to put

RE: hashes and loops

2005-06-14 Thread Karyn Williams
At 04:37 PM 6/14/05 -0700, you wrote: Karyn Williams wrote: Below is code that I found on the web that I slightly modified. I am trying to create a script to remove from a file (tlist) the items in another file (tnames). This works but I have multiple files (tlist) I need to check against. I'm

RE: Hashes and loops

2001-09-19 Thread Daniel Falkenberg
List, I have the following while loop that goes and pings a whole heap of servers around our company. If one is broken or doesn't respond to the ping my code e-mails me the results of which server isn't responding. This all works well but I really need it to be able to keep pinging all the