Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Re: Re: Re: How to use variables from other package?

by chromatic (Archbishop)
on Apr 27, 2003 at 19:55 UTC ( [id://253520]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Foo;
    
    use vars qw( $foo );
    
    $foo = 1;
    
  2. or download this
    #!/usr/bin/perl -w
    
    use strict;
    ...
    
    print "$Foo::foo\n";
    print "$Foo::fooo\n";
    
  3. or download this
    Name "Foo::fooo" used only once: possible typo at usefoo.pl line 7.
    1
    Use of uninitialized value in concatenation (.) or string at usefoo.pl
    + line 7.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://253520]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2025-02-18 07:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found