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
html::html5::sanity
HTML::HTML5::Sanity(3pm) User Contributed Perl Documentation HTML::HTML5::Sanity(3pm)NAME
HTML::HTML5::Sanity - make HTML5 DOM trees less insane
SYNOPSIS
use HTML::HTML5::Parser;
use HTML::HTML5::Sanity;
my $parser = HTML::HTML5::Parser->new;
my $html5_dom = $parser->parse_file('http://example.com/');
my $sane_dom = fix_document($html5_dom);
DESCRIPTION
The Document Object Model (DOM) generated by HTML::HTML5::Parser meets the requirements of the HTML5 spec, but will probably catch a lot of
people by surprise.
The main oddity is that elements and attributes which appear to be namespaced are not really. For example, the following element:
<div xml:lang="fr">...</div>
Looks like it should be parsed so that it has an attribute "lang" in the XML namespace. Not so. It will really be parsed as having the
attribute "xml:lang" in the null namespace.
"fix_document($document)"
$sane_dom = fix_document($html5_dom);
Returns a modified copy of the DOM and leaving the original DOM unmodified.
"fix_element($element_node, $new_document_node, \%namespaces)"
Don't use this. Not exported.
"fix_attribute($attribute_node, $new_element_node, \%namespaces)"
Don't use this. Not exported.
$HTML::HTML5::Sanity::FIX_LANG_ATTRIBUTES
$HTML::HTML5::Sanity::FIX_LANG_ATTRIBUTES = 2;
$sane_dom = fix_document($html5_dom);
If set to 1 (the default), the package will detect invalid values in @lang and @xml:lang, and remove the attribute if it is invalid. If
set to 2, it will also attempt to canonicalise the value (e.g. 'EN_GB' will be converted to to 'en-GB'). If set to 0, then the value of
language attributes is not checked.
BUGS
Please report any bugs to <http://rt.cpan.org/>.
SEE ALSO
HTML::HTML5::Parser, XML::LibXML, Task::HTML5.
AUTHOR
Toby Inkster <tobyink@cpan.org>.
COPYRIGHT AND LICENSE
Copyright (C) 2009-2011 by Toby Inkster
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2011-12-08 HTML::HTML5::Sanity(3pm)