From: "Gary Hawkins" <[EMAIL PROTECTED]>
> > #!perl -w
> > my $x = 'Ahoj';
> > print "$x\n";
> > package foo;
> > print "$x\n";
> > __END__
> >
> > I believe packages are completely irrelevant to lexical (declared
> > with my()) variables.
> >
>
> I was following it up until this, but may have missed the point, maybe
> because I haven't run into a need to use package that way, or didn't
> realize its usefulness.
>
> Simple enough that a different value of $x in the second print is out
> of the question due to 'my', I hope.
>
> How many "things" can packages be? Is this foo a file?
No this "foo" doesn't have to be a file. You can "have" several
packages in one file and "switch" between them.
I don't know how to explain what ARE packages though.
Try if
perldoc perlmod
makes sense to you.
Jenda
=========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain
I can't find it.
--- me
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]