5 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi All,
We've a VDI infrastructure in AWS (AWS workspaces) and we're planning to automate the process of provisioning workspaces. Instead of going to GUI console, and launching workspaces by selecting individual users is little time consuming. Thus, I want to create them in bunches from AWS CLI... (6 Replies)
Discussion started by: arun_adm
6 Replies
2. Shell Programming and Scripting
Hi,
I have 80 large files, from which I want to get a specific value to run a Bash script. Firstly, I want to get the part of a file which contains this:
Name =A
xxxxxx
yyyyyy
zzzzzz
aaaaaa
bbbbbb
Value = 57
This is necessary because in a file there are written more lines which... (6 Replies)
Discussion started by: wenclu
6 Replies
3. Shell Programming and Scripting
Hi there,
I am lil confused with the following issue.
I have a File, which has the following header: IMSHRATE_043008_101016
a sample detailed record is :9820101 A982005000CAVG030108000000000000010169000MAR 2008
9820102 MAR 2008 D030108
... (1 Reply)
Discussion started by: cmaroju
1 Replies
4. Shell Programming and Scripting
why we use strcpy and strcat in KSH program?? (1 Reply)
Discussion started by: debasis.mishra
1 Replies
5. Shell Programming and Scripting
Ok well this isn't homework or classwork, I have been done with school for many years. I offered to help my co-worker who's daughter needs help. I didn't realize I had got rid of all of my UNIX books until after I agreed to help. (3 Replies)
Discussion started by: penguin123
3 Replies
LEARN ABOUT DEBIAN
webservice::cia::source::dbm
WebService::CIA::Source::DBM(3pm) User Contributed Perl Documentation WebService::CIA::Source::DBM(3pm)
NAME
WebService::CIA::Source::DBM - An interface to a DBM copy of the CIA World Factbook
SYNOPSIS
use WebService::CIA::Source::DBM;
my $source = WebService::CIA::Source::DBM->new({
DBM => 'factbook.dbm',
Mode => 'read'
});
DESCRIPTION
WebService::CIA::Source::DBM is an interface to a pre-compiled DBM copy of the CIA World Factbook.
The module can also be used to make the DBM file, taking data from WebService::CIA::Parser (or WebService::CIA::Source::Web) and inserting
it into a DBM.
A script to do this - webservice-cia-makedbm.pl - should be included in this module's distribution.
METHODS
Apart from "new", these methods are normally accessed via a WebService::CIA object.
"new(\%opts)"
This method creates a new WebService::CIA::Source::DBM object. It takes a hashref of options. Valid keys are "DBM" and "Mode".
DBM is mandatory and should be the location of the DBM file to be used.
Mode is optional and can be either "read" or "readwrite". It defaults to "read".
"value($country_code, $field)"
Retrieve a value from the DBM.
$country_code should be the FIPS 10-4 country code as defined in <https://www.cia.gov/library/publications/the-world-factbook/appen-
dix/appendix-d.html>.
$field should be the name of the field whose value you want to retrieve, as defined in <https://www.cia.gov/library/publica-
tions/the-world-factbook/docs/notesanddefs.html>. (WebService::CIA::Parser 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 coun-
try, and a GIF flag of the country respectively.)
"all($country_code)"
Returns a hashref of field-value pairs for $country_code or an empty hashref if $country_code isn't in the DBM.
"set($country_code, $data)"
Insert or update data in the DBM.
$country_code should be as described above.
$data is a hashref of the data to store (as Field => Value).
"set" overwrites any data already in the DBM under $country_code.
"dbm()"
Returns a reference to the DBM file in use.
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, WebService::CIA::Parser, WebService::CIA::Source::Web
perl v5.8.8 2008-02-04 WebService::CIA::Source::DBM(3pm)