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

Re: Best Practice for Lots of Static Data

by Util (Priest)
on Dec 01, 2006 at 06:43 UTC ( [id://587136]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ h2xs -A -B -C -X -n SirBones::PerlMonks::Static_Data
    $ cd                  SirBones-PerlMonks-Static_Data
    $ edit            lib/SirBones/PerlMonks/Static_Data.pm
    $ edit              t/SirBones-PerlMonks-Static_Data.t
    $ prove -Ilib       t/SirBones-PerlMonks-Static_Data.t
    
  2. or download this
    use SirBones::PerlMonks::Static_Data 'status_data';
    is( status_data('dev2')->[2], 'UV_condition', '%status dev2' );
    
  3. or download this
    our @EXPORT_OK = ( 'status_data' );
    
  4. or download this
    our %status = (
      'dev1'  =>  [ qw(
    ...
        my ( $device ) = @_;
        return $status{$device};
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found