Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: should a module export FUNCTIONS or VARIABLES?

by VSarkiss (Monsignor)
on Jul 02, 2001 at 19:31 UTC ( [id://93203]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use AIX::Sysinfo;
    ...
    my $host = hostname();           # sub exported from module
    my $version = system_version();  # sub exported from module
    
  2. or download this
    Use AIX::Sysinfo;
    ...
    my $sys = AIX::Sysinfo->new();
    my $host = $sys->hostname();
    
  3. or download this
    use AIX::Sysinfo_var;                       # making this up
    my $hostname = $sysinfo_hash{hostname};     # making this up
    my $version  = $sysinfo_hash{aix_version};
    
  4. or download this
    use AIX::Sysinfo_tie;
    ...
    tie %sysinfo, 'AIX::Sysinfo';
    my $hostname = $sysinfo{hostname};
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-20 01:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found