Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

my Dog $spot;

by Zaxo (Archbishop)
on Jun 06, 2006 at 08:05 UTC ( [id://553753]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    =pod
    
    package Canine;
    package Dog;
    my Canine $spot : Watchful ;
    
  2. or download this
    use attributes ();
    attributes::->import(Canine => \$spot, "Watchful");
    
    =cut
    
  3. or download this
    use warnings;
    use strict;
    ...
        print "Woof!\n";
        ();
    }
    
  4. or download this
    package main;
    
    ...
    
    my $izzie = ref $spot;
    print $izzie? "$izzie Spot is @{[keys %$spot]}": "No Spot", $/;
    
  5. or download this
    my Dog $rover;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://553753]
Approved by Corion
Front-paged by Courage
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2025-01-17 03:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (55 votes). Check out past polls.