ahh, perldoc -q...thats neat...thanks...=)

-- christopher

On Saturday 01 February 2003 07:49 pm, John W. Krahn wrote:
> Christopher J Bottaro wrote:
> > hello,
>
> Hello,
>
> > what are the equivalent of static vars in c code?  for instance...
> >
> > void myfunc()   {
> >         static int first_call = 1;
> >
> >         if (first_call) {
> >                 /* do some intialization of something */
> >                 first_call = 0;
> >         }
> > }
> >
> > i want to be able to do something like that in perl...
>
> perldoc -q static
>
> Found in /usr/lib/perl5/5.6.0/pod/perlfaq7.pod
>        How do I create a static variable?
>
>
> John
> --
> use Perl;
> program
> fulfillment


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to