Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: inheritance and __DATA__

by bbfu (Curate)
on Apr 13, 2004 at 01:08 UTC ( [id://344580]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub flux {
      my $class = ref shift;
      my $fh = do {
    ...
      };
      return "A-flux: " . scalar <$fh>;
    }
    
  2. or download this
    #!/usr/bin/perl
    use warnings;
    use strict;
    ...
    print "  ", $b->flux();
    
    print "Ok\n";
    
  3. or download this
    package a344569;
    
    use strict;
    ...
    This is package A
    This is package A
    This is package A
    
  4. or download this
    package b344569;
    
    @ISA = ('a344569');
    ...
    This is package B
    This is package B
    This is package B
    
  5. or download this
    [johnsca@cory tmp]$ ./344569.pl 
    A:
      A-foo: This is package A
    ...
      B-bar: This is package B
      A-flux: This is package B
    Ok
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-26 03:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found