Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

hash::util::fieldhash::compat(3pm) [debian man page]

Hash::Util::FieldHash::Compat(3pm)			User Contributed Perl Documentation			Hash::Util::FieldHash::Compat(3pm)

NAME
Hash::Util::FieldHash::Compat - Use Hash::Util::FieldHash or ties, depending on availability. SYNOPSIS
use Hash::Util::FieldHash::Compat; # pretend you are using L<Hash::Util::FieldHash> # under older perls it'll be Tie::RefHash::Weak instead (slower, but same behavior) DESCRIPTION
Under older perls this module provides a drop in compatible api to Hash::Util::FieldHash using perltie. When Hash::Util::FieldHash is available it will use that instead. This way code requiring field hashes can benefit from fast, robust field hashes on Perl 5.10 and newer, but still run on older perls that don't ship with that module. See Hash::Util::FieldHash for all the details of the API. SEE ALSO
Hash::Util::FieldHash, Tie::RefHash, Tie::RefHash::Weak. VERSION CONTROL
This module is maintained using Darcs. You can get the latest version from <http://nothingmuch.woobling.org/code>, and use "darcs send" to commit changes. AUTHOR
Yuval Kogman <nothingmuch@woobling.org> COPYRIGHT
Copyright (c) 2008 Yuval Kogman. All rights reserved This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.12.4 2008-05-16 Hash::Util::FieldHash::Compat(3pm)

Check Out this Related Man Page

Data::Stream::Bulk::Util(3pm)				User Contributed Perl Documentation			     Data::Stream::Bulk::Util(3pm)

NAME
Data::Stream::Bulk::Util - Utility functions for Data::Stream::Bulk VERSION
version 0.11 SYNOPSIS
use Data::Stream::Bulk::Util qw(array); use namespace::clean; # Wrap a list in L<Data::Stream::Bulk::Array> return bulk(qw(foo bar gorch baz)); # return an empty resultset return nil(); DESCRIPTION
This module exports convenience functions for use with Data::Stream::Bulk. EXPORTS
Sub::Exporter is used to create the "import" routine, and all of its aliasing/currying goodness is of course supported. nil Creates a new Data::Stream::Bulk::Nil object. Takes no arguments. bulk @items Creates a new Data::Stream::Bulk::Array wrapping @items. cat @streams Concatenate several streams together. Returns "nil" if no arguments are provided. filter { ... } $stream Calls "filter" on $stream with the provided filter. unique $stream Filter the stream to remove duplicates. Note that memory use may potentially scale to O(k) where k is the number of distinct items, because this is implemented in terms of a seen hash. In the future this will be optimized to be iterative for sorted streams. References are keyed by their refaddr (see "id" in Hash::Util::FieldHash). AUTHOR
Yuval Kogman <nothingmuch@woobling.org> COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Yuval Kogman. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-02-14 Data::Stream::Bulk::Util(3pm)
Man Page

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

populate PERL Hash

Hello I am new to perl and learning ...can you please explain why am i getting this error...as myHash is defined right above the code and I think it should be avilable in the sub function. Here is my code: <code> #!/usr/bin/perl use warnings; use strict; %myHash=(); sub... (2 Replies)
Discussion started by: uandme2k2
2 Replies

2. Shell Programming and Scripting

PERL: reading 2 column data into Hash file

I am trying to read in a 2 column data file into Perl Hash array index. Here is my code. #!/usr/bin/perl -w use strict; use warnings; my $file = "file_a"; my @line = (); my $index = 0; my %ind_file = (); open(FILE, $file) or die($!); while(<FILE>) { chomp($_); if ($_ eq '') { ... (1 Reply)
Discussion started by: subhap
1 Replies

3. Shell Programming and Scripting

Perl Hash:Can not keep hash data in the same order that it was inserted

Can Someone explain me why even using Tie::IxHash I can not get the output data in the same order that it was inserted? See code below. #!/usr/bin/perl use warnings; use Tie::IxHash; use strict; tie (my %programs, "Tie::IxHash"); while (my $line = <DATA>) { chomp $line; my(... (1 Reply)
Discussion started by: jgfcoimbra
1 Replies

4. SCO

Printer is winning the battle! (for now)

All, Q: how would I add some escape codes to an interface that i have setup t print.? Goal: to switch from NLQ to Util modes. back and forth. Scenerio: SCO OS 5.05 PRINTER: OKI Data 320 or similar. printer is called "test" What I have done thus far. (just cannot get their) I can from a... (6 Replies)
Discussion started by: TheSniper
6 Replies

5. Programming

Perl Json and Hash

Hi all, i am using the following code to that use curl to that outputs a json, i am stuck it into a hash but i canot figure out how to get just the value i need ( hostname) here is my code use warnings; use strict; use Data::Dumper qw(Dumper); ##use JSON; use JSON::XS; my $curl=... (2 Replies)
Discussion started by: ab52
2 Replies

6. Programming

Hash Table

I was looking at this script and was wondering if anyone can explain what this script does and how does it work. Thank you for any help. State* lookup(char* prefix, int create) { int i, h; State *sp = NULL ; h = hash(prefix); for (sp = statetab; sp != NULL; sp... (14 Replies)
Discussion started by: totoro125
14 Replies

7. UNIX for Dummies Questions & Answers

Keepalived and Source Hash Scheduling

Hello guys, Hope you are doing great!! Right now I'm using keepalived daemon in order to ensure a Load Balancing function between my two servers. First of all, I tried using the famous "Round-Robin Scheduling" algorithm and it worked well, but I'm kind of obligated to use the "Source Hashing ... (7 Replies)
Discussion started by: biks93
7 Replies