05-15-2009
Quote:
Originally Posted by
KevinADC
The newlines will mess that all up, should be:
Ah. Didn't see the newlines there.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
Help me with some good links of Hash with in Hash .(Multidimensional hash)..
Regards
Harikrishna (1 Reply)
Discussion started by: Harikrishna
1 Replies
2. Shell Programming and Scripting
HI
I have a hash like this
$hashname->{$filesystem}->{'fsname'}=$filesystem;
How to get the values from this multilevel hash.
Thanks in advance... :) (1 Reply)
Discussion started by: Harikrishna
1 Replies
3. Shell Programming and Scripting
hi
i have two hash achi %disk1,%disk2 with( key, value) (key1,value1)
How to store it in another hash..
Plz replyyy.
Regards
Hari (1 Reply)
Discussion started by: Harikrishna
1 Replies
4. Shell Programming and Scripting
i have an hash table in which each value is an array. How can i print for each key the array values??? something like this:
thanks (2 Replies)
Discussion started by: littleboyblu
2 Replies
5. Shell Programming and Scripting
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
6. Shell Programming and Scripting
Hi,
In Perl, is it possible to use a range of numbers with '..' as a key in a hash?
Something in like:
%hash = (
'768..1536' => '1G',
'1537..2560' => '2G'
);
That is, the range operation is evaluated, and all members of the range are... (3 Replies)
Discussion started by: dsw
3 Replies
7. Shell Programming and Scripting
I have 2 arrays:
@array1 outputs the following:
1
1
1
2
@array2 outputs the following
A
B
C
D (2 Replies)
Discussion started by: streetfighter2
2 Replies
8. Shell Programming and Scripting
Hi ,
i have the below code its working fine when i execute in unix , but its not working in windows could you pls explain me where i am going wrong.
This is the program
$data = { '1' => 'one' ,
'2' => 'two' ,
3 => 'three'
};
print "hello : $data->{'1'}... (2 Replies)
Discussion started by: ragilla
2 Replies
9. Shell Programming and Scripting
Hi,
I have an hashes of hash, where hash is dynamic, it can be n number of hash. i need to compare data_count values of all .
my %result (
$abc => {
'data_count' => '10',
'ID' => 'ABC122',
}
$def => {
'data_count' => '20',
'ID' => 'defASe',
... (1 Reply)
Discussion started by: asak
1 Replies
10. Programming
My issue is that the perl script (as I have done it so far) created empty branches when I try to check some branches on existence.
I am using multydimentional hashes: found it as the best way for information that I need to handle. Saing multidimentional I means hash of hashes ... So, I have
... (2 Replies)
Discussion started by: alex_5161
2 Replies
LEARN ABOUT REDHAT
http::message
HTTP::Message(3) User Contributed Perl Documentation HTTP::Message(3)
NAME
HTTP::Message - Class encapsulating HTTP messages
SYNOPSIS
package HTTP::Request; # or HTTP::Response
require HTTP::Message;
@ISA=qw(HTTP::Message);
DESCRIPTION
An "HTTP::Message" object contains some headers and a content (body). The class is abstract, i.e. it only used as a base class for
"HTTP::Request" and "HTTP::Response" and should never instantiated as itself.
The following methods are available:
$mess = HTTP::Message->new
This is the object constructor. It should only be called internally by this library. External code should construct "HTTP::Request"
or "HTTP::Response" objects.
$mess->clone()
Returns a copy of the object.
$mess->protocol([$proto])
Sets the HTTP protocol used for the message. The protocol() is a string like "HTTP/1.0" or "HTTP/1.1".
$mess->content([$content])
The content() method sets the content if an argument is given. If no argument is given the content is not touched. In either case the
previous content is returned.
$mess->add_content($data)
The add_content() methods appends more data to the end of the current content buffer.
$mess->content_ref
The content_ref() method will return a reference to content buffer string. It can be more efficient to access the content this way if
the content is huge, and it can even be used for direct manipulation of the content, for instance:
${$res->content_ref} =~ s/foo/bar/g;
$mess->headers;
Return the embedded HTTP::Headers object.
$mess->headers_as_string([$endl])
Call the as_string() method for the headers in the message. This will be the same as:
$mess->headers->as_string
but it will make your program a whole character shorter :-)
All unknown "HTTP::Message" methods are delegated to the "HTTP::Headers" object that is part of every message. This allows convenient
access to these methods. Refer to HTTP::Headers for details of these methods:
$mess->header($field => $val);
$mess->push_header($field => $val);
$mess->init_header($field => $val);
$mess->remove_header($field);
$mess->scan(&doit);
$mess->date;
$mess->expires;
$mess->if_modified_since;
$mess->if_unmodified_since;
$mess->last_modified;
$mess->content_type;
$mess->content_encoding;
$mess->content_length;
$mess->content_language
$mess->title;
$mess->user_agent;
$mess->server;
$mess->from;
$mess->referer;
$mess->www_authenticate;
$mess->authorization;
$mess->proxy_authorization;
$mess->authorization_basic;
$mess->proxy_authorization_basic;
COPYRIGHT
Copyright 1995-2001 Gisle Aas.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
libwww-perl-5.65 2001-11-15 HTTP::Message(3)