Re: "my" variable initiation

2002-06-14 Thread Jan Dubois
On Fri, 14 Jun 2002 08:04:47 +0100, "Michael D. Smith" <[EMAIL PROTECTED]> wrote: >Basically, I want a first time switch. > >I can do that with a gobal variable like this: > >$first_time = 0; > >sub howto { > if ($first_time == 0 ) { # do the stuff that's done only the first >time then add

Re: "my" variable initiation

2002-06-14 Thread $Bill Luebkert
Michael D. Smith wrote: > > This is a small thing but it's annoying me. I've been using a gobal > variable inside a subroutine, which you're not supposed to have to do, > or get a warning, which isn't fatal either but I don't like it. > > Basically, I want a first time switch. > > I can do th

RE: "my" variable initiation

2002-06-14 Thread Michael D. Smith
This is a small thing but it's annoying me. I've been using a gobal variable inside a subroutine, which you're not supposed to have to do, or get a warning, which isn't fatal either but I don't like it. Basically, I want a first time switch. I can do that with a gobal variable like this: $fi