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.
determined,
so it doesn't make any noise for me. YMMV.
--
Todd A. Jacobs
CodeGnome Consulting, LTD
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
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.
--
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
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