Hash::Case::Lower(3pm) User Contributed Perl Documentation Hash::Case::Lower(3pm)NAME
Hash::Case::Lower - hash with enforced lower cased keys
INHERITANCE
Hash::Case::Lower
is a Hash::Case
is a Tie::StdHash
SYNOPSIS
use Hash::Case::Lower;
tie my(%lchash), 'Hash::Case::Lower';
$lchash{StraNGeKeY} = 3;
print keys %lchash; # strangekey
DESCRIPTION
Hash::Case::Lower extends Hash::Case, which lets you play various trics with hash keys. In this implementation, the fake hash is case
insensitive and the keys stored in lower-case.
METHODS
Constructors
$obj->addHashData(HASH)
See "Constructors" in Hash::Case
$obj->addPairs(PAIRS)
See "Constructors" in Hash::Case
$obj->setHash(HASH)
See "Constructors" in Hash::Case
tie(HASH, 'Hash::Case::Lower', [VALUES,] OPTIONS)
Define HASH to have only lower cased keys. The hash is initialized with the VALUES, specified as ref-array (with key value pairs) or
ref-hash. Currently, there are no OPTIONS defined.
SEE ALSO
This module is part of Hash-Case distribution version 1.02, built on March 09, 2012. Website: http://perl.overmeer.net/hash-case/
LICENSE
Copyrights 2002-2003,2007-2012 by Mark Overmeer. For other contributors see ChangeLog.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See
http://www.perl.com/perl/misc/Artistic.html
perl v5.14.2 2012-03-09 Hash::Case::Lower(3pm)
Check Out this Related Man Page
Hash(3pm) User Contributed Perl Documentation Hash(3pm)NAME
Test::Data::Hash -- test functions for hash variables
SYNOPSIS
use Test::Data qw(Hash);
DESCRIPTION
This modules provides a collection of test utilities for hash variables. Load the module through Test::Data.
Functions
exists_ok( KEY, HASH [, NAME] )
Ok if the value for KEY in HASH exists. The function does not create KEY in HASH.
not_exists_ok( KEY, HASH [, NAME] )
Ok if the value for KEY in HASH does not exist. The function does not create KEY in HASH.
hash_value_defined_ok( KEY, HASH [, NAME] )
Ok if the value for KEY in HASH is defined. The function does not create KEY in HASH.
hash_value_undef_ok( KEY, HASH [, NAME] )
Ok if the value for KEY in HASH is undefined. The function does not create KEY in HASH.
hash_value_true_ok( KEY, HASH [, NAME] )
Ok if the value for KEY in HASH is true. The function does not create KEY in HASH.
hash_value_false_ok( KEY, HASH [, NAME] )
Ok if the value for KEY in HASH is false. The function does not create KEY in HASH.
SEE ALSO
Test::Data, Test::Data::Array, Test::Data::Function, Test::Data::Scalar, Test::Builder
SOURCE AVAILABILITY
This source is in Github:
http://github.com/briandfoy/test-data/tree/master
AUTHOR
brian d foy, "<bdfoy@cpan.org>"
COPYRIGHT AND LICENSE
Copyright (c) 2002-2009 brian d foy. 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.14.2 2009-02-12 Hash(3pm)
This drive me nut, any can show me how to do it ??
str1='Case Modify 10001 20002 30003 40004|Report Create 3417176211|Case Modify 10002 20002 30003 40004'
and str2='Case Modify 10001'
if str1 ~ str2
then str1='Report Create 3417176211|Case Modify 10002 20002 30003 40004'
Thanks, (8 Replies)
Learning Perl here, so bear with me... Have a hash that i need to delete the entry out of and am having problems doing that. Basically, I need to delete all entries from the hash that have values over 5,000,000. What I am trying to do is to find each entry and delete it. Does not work - I have... (6 Replies)
print $hash{$value} if exists $hash{$key};
would only print my top value, and not the one I want to "match".... should i not be using if exists? how would you recommend "searching" a hash file...
thanks! (6 Replies)
I have created my own hash table class, but am looking to speed it up. My current hash function is:
int HashTable::hashFunc(const string &key) const
{
int tableSize = theLists.size();
int hashVal = 0;
for(int i = 0; i<key.length(); i++)
hashVal =... (7 Replies)
Hi Everyone,
Can anyone help me how do i call hash variable in to sql query in perl. Please see the script below
i have defined two Hash %lc and %tab as below
$lc{'REFF'}='V_RES_CLASS';
$lc{'CALE'}='V_CAP_CLASS';
$lc{'XRPD'}='V_XFMR_CLASS';
$tab{'V_RES_CLASS'}='V_MFR_SERS';... (6 Replies)
Hello,
Linux man command search is case insensitive by default, but not AIX man.
How do I serch case insensitive while using AIX manual pages ?
thanks
Vilius (7 Replies)
Hi all,
I just downloaded this example from the net. I was looking around for a hash table like implementation in unix when I came across this.
ARRAY=( "cow:moo"
"dinosaur:roar"
"bird:chirp"
"bash:rock" )
for animal in ${ARRAY} ; do
KEY=${animal%%:*}
... (8 Replies)
Hello Unix Gurus :
It would be really appreciative if can find a solution for this .
I have records in a file .
I need to Capitalize the records based on condition .
For Example i tried the following Command
COMMAND -->
fgrep "2000YUYU" /export/home/oracle/TST/data.dat | tr '' ''... (12 Replies)
There is a script where we pass the parameter in lower case:
say: . ./scriptName pArameter
#!/bin/ksh
echo "`date` Entering $0 Reloading the $1 table "
mname1=$1
(code to login MYSQL Database)
Truncate table $mname1;
exit
!
Since now there is a limitaion of MYSQL that it accept... (5 Replies)
I'm trying to write a script that can compile my students' homework submissions in bulk. My students' c code is buried in a file path that looks like this:
./Homework\ X/Doe, John/Submission\ Attachments
Where I'm struggling is determining how to navigate to each of the submission attachment... (11 Replies)
Hi folks,
I am new to bash scripting so please excuse my question.
Is there any chance to combine a case structure with the read command?
Like
case (read -p "" variable) in
x)
Thx! (7 Replies)
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)
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)
Hi Experts,
Need your guidance for case statement. I tried many way but no success yet.Now my existing code is doing something like below. Each Line of the input file contains one test case.#!/bin/bash
FILE=$1
while read LINE; do
do COMMAND
done < $FILE
Now I want to modify the code... (6 Replies)