Hi,
Please can someone help to return the array elements from a function. Currently the problem I face is that tempValue stores the value in myValue as a string while I need an array of values to be returned instead of string.
Many Thanks,
Sudhakar
the function called is:
... (5 Replies)
I just want to be able to take every 6 value out of an arrays
can someone tell me what i'm doing wrong? the data looks like
1500680,Treverbyn,397,1,2136,4420 and i want the 2 element treverbyn out of every row
#hour0.pl
my $url = 'http://en19.tribalwars.net/map/tribe.txt';
use... (1 Reply)
Hello Guys...
My customer is trying to use Control-M to schedule a batch file that runs my application and executes one Javascript, but he is facing problems with the graphical ellements from my application, that has a splash screen showing the name of the application, the license used and a... (0 Replies)
Hi All
I have a question.
I would like to edit some string characters by replacing with characters of choice located in another file. For example in sample file>S5_SK1.chr01
NNNNNNNNNNNNNNNNNNNCAGCATGCAATAAGGTGACATAGATATACCCACACACCACACCCTAACACTAACCCTAATCTAACCCTGGCCAACCTGTTT... (9 Replies)
for testing network elements which of the below is TRUE
a)Thorough understanding of RFC s/ IETF standards is enough.
b)One has to know design specifications along with standards and specification.
c)Understanding customer requirements is required for acceptance test only and not for... (0 Replies)
Hello,
I want to select first element from 2 to 3 files how I would do that. e.g my input files are:-
file1=(1,2,3,4)
file2 =(1,2,3,4)
file3=(1,2,3,4)
output should be
outputfile=(1,1,1,1) (12 Replies)
Hi everyone, :)
I'm trying to make a simple C program that scans an array of chars to see if its elements are similar.
I can't understand what's wrong. Could you help me to fix this? Here is the code.
Thanks!
#include<stdio.h>
int main() {
int arr;
int i, len;
int flag =... (10 Replies)
Hello,
In a shell script, I want to declare an array and subsequently print the elements with tab delimits.
My array has the following structure and arbitrary elements:
myArray=('fgh' 'ijk' 'xyz' 'abc');
Next, I would like to print it with a '\n' at the end.
Thanks for your input!
... (2 Replies)
Discussion started by: Gussifinknottle
2 Replies
LEARN ABOUT DEBIAN
http::response::encoding
HTTP::Response::Encoding(3pm) User Contributed Perl Documentation HTTP::Response::Encoding(3pm)NAME
HTTP::Response::Encoding - Adds encoding() to HTTP::Response
VERSION
$Id: Encoding.pm,v 0.5 2007/05/12 09:24:15 dankogai Exp $
SYNOPSIS
use LWP::UserAgent;
use HTTP::Response::Encoding;
my $ua = LWP::UserAgent->new();
my $res = $ua->get("http://www.example.com/");
warn $res->encoding;
EXPORT
Nothing.
METHODS
This module adds the following methods to HTTP::Response objects.
"$res->charset"
Tells the charset exactly as appears in the "Content-Type:" header. Note that the presence of the charset does not guarantee if the
response content is decodable via Encode.
To normalize this, you should try
$res->encoder->mime_name; # with Encode 2.21 or above
or
use I18N::Charset;
# ...
mime_charset_name($res->encoding);
"$res->encoder"
Returns the corresponding encoder object or undef if it can't.
"$res->encoding"
Tells the content encoding in the canonical name in Encode. Returns undef if it can't.
For most cases, you are more likely to successfully find encoding after GET than HEAD. HTTP::Response is smart enough to parse
<meta http-equiv="Content-Type" content="text/html; charset=whatever"/>
But you need the content to let HTTP::Response parse it. If you don't want to retrieve the whole content but interested in its encoding,
try something like below;
my $req = HTTP::Request->new(GET => $uri);
$req->headers->header(Range => "bytes=0-4095"); # just 1st 4k
my $res = $ua->request($req);
warn $res->encoding;
"$res->decoded_content"
Discontinued since HTTP::Message already has this method.
See HTTP::Message for details.
INSTALLATION
To install this module, run the following commands:
perl Makefile.PL
make
make test
make install
AUTHOR
Dan Kogai, "<dankogai at dan.co.jp>"
BUGS
Please report any bugs or feature requests to "bug-http-response-encoding at rt.cpan.org", or through the web interface at
<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=HTTP-Response-Encoding>. I will be notified, and then you'll automatically be notified of
progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc HTTP::Response::Encoding
You can also look for information at:
o AnnoCPAN: Annotated CPAN documentation
<http://annocpan.org/dist/HTTP-Response-Encoding>
o CPAN Ratings
<http://cpanratings.perl.org/d/HTTP-Response-Encoding>
o RT: CPAN's request tracker
<http://rt.cpan.org/NoAuth/Bugs.html?Dist=HTTP-Response-Encoding>
o Search CPAN
<http://search.cpan.org/dist/HTTP-Response-Encoding>
ACKNOWLEDGEMENTS
GAAS for LWP.
MIYAGAWA for suggestions.
COPYRIGHT & LICENSE
Copyright 2007 Dan Kogai, 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.10.0 2009-07-12 HTTP::Response::Encoding(3pm)