xiaoyafeng has asked for the wisdom of the Perl Monks concerning the following question:

Hi monks, I have learned OOperl These day, and now had a small question. Below is a sentence chapter 10 package of Programming Perl Third Edition:
You can refer to identifiers5 in other packages by prefixing ("qualifying") the identifier with the package name and a double colon: $Package::Variable.

So,I have tried this:
#!/usr/bin/perl use warnings; use strict; use File::Find; print $File::Find::Version,"\n"; __OUTPUT__ Name "File::Find::Version" used only once: possible typo at test.pl li +ne 5. Use of uninitialized value in print at test.pl line 5.
What does the error messages mean? And how do I use package variable?
Thanks in advance!

I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction

Replies are listed 'Best First'.
Re: Package Variable
by j3 (Friar) on Apr 06, 2007 at 02:31 UTC

    When you get an error that you'd like to learn more about, you can run perldoc perldiag, then search through that file for the string in that error message.

    In your case, you want VERSION instead of Version.

Re: Package Variable
by bobf (Monsignor) on Apr 06, 2007 at 02:51 UTC
Re: Package Variable
by xiaoyafeng (Deacon) on Apr 06, 2007 at 03:16 UTC
    Thanks!
    After reading all replys , I really realize that I made the stupid mistake and post this stupid question before using SuperSearch.Thank you,I'm happy to stay here and learn perl much largely because of monk's quick and enthusiastic answer. I hope that I will be a real monk and answer the questions from newbie in future.


    I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction