Re: My My

2001-04-23 Thread Todd A. Jacobs
On Mon, 23 Apr 2001, SunDog wrote: > where 'my' is placed in front of arrays, hashes - you name it ... The "my" keyword makes a variable local. It's a scoping mechanism, and is primarily used inside function definitions to keep the namespace uncluttered.

Re: audible beep

2001-06-01 Thread Todd A. Jacobs
determined, so it doesn't make any noise for me. YMMV. -- Todd A. Jacobs CodeGnome Consulting, LTD

Re: If (/start/ .. /end/) Flip Flop Mechanism

2002-03-03 Thread Todd A. Jacobs
On Sat, 2 Mar 2002, Steven M. Klass wrote: > if (/start/ .. /end/){ >s/^foo/bar/; > > } Just add an alternative match: if (/start/ .. /end/) { s/^foo/bar/ or s/^/bar/ ; } -- "The only thing that helps me maintain my slender grip on reality is the friendshi

Re: Regular expression needed

2001-09-14 Thread Todd A. Jacobs
On Fri, 14 Sep 2001, Jorge Goncalvez wrote: > dhcpd : LOG_INFO : DHCPDISCOVER from > 02:41:53:20:d0:34:5b:a6:ef:3c:c1:01:01:00:00:00 via eth0 > > How can I do to make the test if this line contains the word DHCPDISCOVER? /DHCPDISCOVER/ && -- Work: It's not just a job, it's an indenture. --

Re: Regular expression needed

2001-09-14 Thread Todd A. Jacobs
On Fri, 14 Sep 2001, Jorge Goncalvez wrote: > Thanks for your tips Todd but My if is never verified in: > > if ($_==~ /DHCPDISCOVER/ && ) > {.. > } > > althought $_=' dhcpd : LOG_INFO : DHCPDISCOVER from > 02:41:53:20:d0:34:5b:a6:ef:3c:c1:01:01:00:00:00 via eth0. > > Why? Well, my

Re: control input output and error of unix ftp client

2001-09-14 Thread Todd A. Jacobs
On Fri, 14 Sep 2001, Lakmal Jinadasa wrote: > Our security department has asked to remove all the .netrc files from > home directories. But some of our applications use .netrc for Why not just make the home directories non-world writable? > 2. Write a wrapper for ftp client to read the hostnam