Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

RFC: Tie::File::AnyData Lightweight Databases in Perl

by citromatik (Curate)
on Dec 10, 2007 at 15:31 UTC ( #656142=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Peter   3
    Peter   15
    ...
    John    1
    John    7
    Mike    4
    
  2. or download this
    use Tie::File::AnyData;
    
    ...
           ## Use the tied array
    
    untie @data;
    
  3. or download this
    use Tie::File::AnyData;
    tie my @data, 'Tie::File::AnyData', $file;
           ## Use the tied array as with Tie::File
    
  4. or download this
    Peter   3
    Peter   15
    ...
    John    1
    John    7
    Mike    4
    
  5. or download this
    use Tie::File::AnyData::CSV;
    
    tie my @arr, 'Tie::File::AnyData::CSV', $file or die;
    print "$arr[0]\n";
    
  6. or download this
    Peter   3
    Peter   15
    Peter   5
    
  7. or download this
    use Tie::File::AnyData::Bio::Fasta;
    
    ...
    use List::Util qw/shuffle/;
    my @out = (shuffle @fastaArray)[0..9];
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2019-04-18 10:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I am most likely to install a new module from CPAN if:
















    Results (103 votes). Check out past polls.

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