02-08-2015
These 2 Users Gave Thanks to bartus11 For This Post:
6 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am currently studying to be a Unix programmer. I am at the very beginning stages taking an online course through guruischool. I know that this course will not be nearly enough for me to be a confident or competent unix programmer. However I was wondering what projects I can do at home that will... (4 Replies)
Discussion started by: vedder10
4 Replies
2. Shell Programming and Scripting
Hi ,
I am interested in getting some new projects on shell scripting . Can some one suggest me some bidding site where I can get the projects.
Regards (0 Replies)
Discussion started by: himvat
0 Replies
3. Solaris
I have 3 projects for 3 oracle instances and 10-15 users associated with different projects is there any way i can list the users associated with all the projects .. i know one method of id -p but for that i have to su to each user
The system was handed over to me configured by external vendor... (2 Replies)
Discussion started by: fugitive
2 Replies
4. Solaris
Hi there
Created some zones on my m5000, both going to be used for oracle. Been reading up about how solaris 10 has made tuning of the /etc/system file redundant and the use of rctladm / projects have taken over.
Been reading the manuals, but my head is about to explode. Thought I would... (2 Replies)
Discussion started by: sbk1972
2 Replies
5. Solaris
Is there a Solaris 10 BUG (with Trusted Extensions) with binding to a project? This is Solaris 10 32bit Intel and Oracle EE 10gRel2.
I am being told that a project (/etc/project) will not bind to the user because of a Solaris bug. According to my admin people Solaris told my company this when... (2 Replies)
Discussion started by: djehresmann
2 Replies
6. Solaris
Hi guys, me again! :D
I recently migrated a physical server to a zone, everything works perfectly except the /etc/system parameters.
I was expecting that the migration process would consider the entries in the /etc/system file and create automatically the corresponding project. I know, the... (2 Replies)
Discussion started by: beta17
2 Replies
LEARN ABOUT DEBIAN
webservice::cia::parser
WebService::CIA::Parser(3pm) User Contributed Perl Documentation WebService::CIA::Parser(3pm)
NAME
WebService::CIA::Parser - Parse pages from the CIA World Factbook
SYNOPSIS
use WebService::CIA::Parser;
my $parser = WebService::CIA::Parser->new;
my $data = $parser->parse($string);
DESCRIPTION
WebService::CIA::Parser takes a string of HTML and parses it. It will only give sensible output if the string is the HTML for a page whose
URL matches "https://www.cia.gov/library/publications/the-world-factbook/print/[a-z]{2}.html"
This parsing is somewhat fragile, since it assumes a certain page structure. It'll work just as long as the CIA don't choose to alter
their pages.
METHODS
"new"
Creates a new WebService::CIA::Parser object. It takes no arguments.
"parse($html)"
Parses a string of HTML take from the CIA World Factbook. It takes a single string as its argument and returns a hashref of fields and
values.
The values are stripped of all HTML. "<br>" tags are replaced by newlines.
It also creates four extra fields: "URL", "URL - Print", "URL - Flag", and "URL - Map" which are the URLs of the country's Factbook
page, the printable version of that page, a GIF map of the country, and a GIF flag of the country respectively.
EXAMPLE
use WebService::CIA::Parser;
use LWP::Simple qw(get);
$html = get(
"https://www.cia.gov/library/publications/the-world-factbook/print/uk.html"
);
$parser = WebService::CIA::Parser->new;
$data = $parser->parse($html);
print $data->{"Population"};
AUTHOR
Ian Malpass (ian-cpan@indecorous.com)
COPYRIGHT
Copyright 2003-2007, Ian Malpass
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The CIA World Factbook's copyright information page (<https://www.cia.gov/library/publications/the-world-factbook/docs/contributor_copy-
right.html>) states:
The Factbook is in the public domain. Accordingly, it may be copied
freely without permission of the Central Intelligence Agency (CIA).
SEE ALSO
WebService::CIA
perl v5.8.8 2008-02-04 WebService::CIA::Parser(3pm)