Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Veltro's scratchpad

by Veltro (Pilgrim)
on Apr 24, 2018 at 09:50 UTC ( #1213471=scratchpad: print w/replies, xml ) Need Help??

package Foo ; use strict ; use warnings ; our $VERSION = '1.75' ;

-

package Bar ; use base 'Foo' ; $VERSION = '0.0.3'; use warnings ; use strict ; # Does not report missing 'our' before $VERSION

main.pl:

use lib '.' ; use strict ; use warnings ; use Bar ; print "version Foo = $Foo::VERSION\n" ; print "version Bar = $Bar::VERSION\n" ;
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2018-12-10 02:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many stories does it take before you've heard them all?







    Results (47 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!