Sponsored Content
Full Discussion: LWP::Simple Problem !!
Top Forums UNIX for Dummies Questions & Answers LWP::Simple Problem !! Post 302508225 by Corona688 on Saturday 26th of March 2011 08:40:21 PM
Old 03-26-2011
It means what it says: It can't find that module. You don't have it installed, probably.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

LWP module ?

my host run on a Free bsd server and i have a cgi script that requires LWP module, but i my host say that that module is installed, so i would like to know if the is a command because i have telnet access to know if the module or which modules are installed on my account (itīs that the script donīt... (4 Replies)
Discussion started by: Beto
4 Replies

2. Solaris

decipher pstack with problem lwp

My company has a product that is running on JBoss on Solaris against Oracle 8.1.7. We are having an issue with the server process and high CPU utilization. During this time, and only during this time, we are experiencing database locks that will not let go. A 'ps -L' on the server process... (5 Replies)
Discussion started by: hosierdm
5 Replies

3. Solaris

oracle process and LWP on solaris 8 box

Hi all, Without oracle tunning I understand that oracle processes always run on a single CPU at a time (the prstat output always show 1 CPU number) even on multi-processor hardware. Is it correct? Regards, (1 Reply)
Discussion started by: solea
1 Replies

4. Shell Programming and Scripting

Help needed in Perl LWP module

Hi, I've a issue in writing a perl script that will automatically monitor the site availability. There are two different cookies are set in two consecutive flows to a URL and this second cookie has to be passed to the third step which actually gives permission to access based upon the cookie. ... (1 Reply)
Discussion started by: dayanandra
1 Replies

5. Shell Programming and Scripting

Login using perl LWP module

Hi, Could some one tell me how to login to any web site and get that page using perl LWP. I heard that we can login to the site using LWP. I dont want to use WWW:Mechanize as I dont have that module installed on the server. Appreciate your early response. Thanks... (8 Replies)
Discussion started by: Anjan1
8 Replies

6. Shell Programming and Scripting

authentication using LWP

Can some one tell me how to post the username and password using perl LWP. An example is sufficient.. (0 Replies)
Discussion started by: Anjan1
0 Replies

7. Shell Programming and Scripting

Perl LWP user authentication

Hello all.. i am new to perl scripting.. i wanted to parse a text file, encode the parsed text and attach in url.. please point me to right resources if you know any..This is my major problem. Now i try to get a url running and save it in a text file using LWP module in perl, I used following... (0 Replies)
Discussion started by: empyrean
0 Replies

8. Shell Programming and Scripting

lwp-request examples

Hi; Can i have ne sample examples of of using " lwp-request" in shell script. Is it necessary to have perl installed already in linux box for using this; Thnks; (2 Replies)
Discussion started by: ajaypadvi
2 Replies

9. Shell Programming and Scripting

parsing a webpage - perl lwp

I am requesting for the text parsing section below. Any helps are highly appreciated. <tr valign="top"><td nowrap>Source name</td> <td style="text-align: justify">Sample Name<br></td> I want Sample Name from above. In the same file, I have to search for another pattern like this <td><a... (1 Reply)
Discussion started by: jacobs.smith
1 Replies

10. Web Development

Using LWP without hard coding password

Hi, I would like to read content from a https site. I have decided to use LWP module in perl. but it throwed 401 Authorization required error. i dont want to hard code the password in my perl code. Is there any way to achieve the authentication without hardcoding the password. Thanks,... (1 Reply)
Discussion started by: pandeesh
1 Replies
Module::Optional(3pm)					User Contributed Perl Documentation				     Module::Optional(3pm)

NAME
Module::Optional - Breaking module dependency chains SYNOPSIS
use Bar::Dummy qw(); use Module::Optional Bar; ABSTRACT
This module provides a way of using a module which may or may not be installed on the target machine. If the module is available it behaves as a straight use. If the module is not available, subs are repointed to their equivalents in a dummy namespace. DESCRIPTION
Suppose you are the developer of module "Foo", which uses functionality from the highly controversial module "Bar". You actually quite like "Bar", and want to reuse its functionality in your "Foo" module. But, many people will refuse to install "Foo" as it needs "Bar". Maybe "Bar" is failing tests or is misbehaving on some platforms. Making "Bar" an optional module will allow users to run "Foo" that don't have "Bar" installed. For Module::Build users, this involves changing the status of the "Bar" dependency from "requires" to "recommends". To use this module, you need to set up a namespace "Bar::Dummy". The recommended way of doing this is to ship lib/Bar/Dummy.pm with your module. This could be shipped as a standalone module. A dummy module for "Params::Validate" is shipped with Module::Optional, as this was the original motivation for the module. If there are other common candidates for dummying, petition me, and I'll include them in the Module::Optional distribution. Using an optional module Place the lines of code in the following order: use Bar::Dummy qw(); use Module::Optional qw(Bar quux wibble wobble); Always set up the dummy module first, but don't import anything - this is to avoid warnings about redefined subroutines if the real Bar is installed on the target machine. Module::Optional will do the importing: quux wibble and wobble from the real Bar if it exists, or from Bar::Dummy if it doesn't. Asking for a module version If you need a version of the module or later, this can be done thus: use Bar::Dummy qw(); use Module::Optional qw(Bar 0.07 quux wibble wobble); If version 0.07 or later of Bar is not available, the dummy is used. Suppressing the module You will probably be developing your module on a platform that does have Bar installed (I hope). However, you need to be able to tell what happens on systems without Bar. To do this, run the following (example is Unix): MODULE_OPTIONAL_SKIP=1 make test You also want to do this in tests for the dummy module that you are providing. (You are providing tests for this module?) This can easily be done with a begin block at the top of the test: BEGIN { local $ENV{MODULE_OPTIONAL_SKIP} = 1; use Module::Optional qw(Params::Validate); } Writing a ::Dummy Module You provide a namespace suffixed with ::Dummy containing subs corresponding to all the subs and method calls for the optional module. You should also provide the same exports as the module itself performs. Adhere strictly to any prototypes in the optional module. An example of a dummy module is Params::Validate::Dummy, provided in this distribution. INTERNALS
Module::Optional performs two types of redirection for the missing module. Firstly via @ISA inheritance - Foo::Bar inherits from Foo::Bar::Dummy. Secondly, an AUTOLOAD method is added to Foo::Bar, which will catch calls to subs in this namespace. BUGS
Please report bugs to rt.cpan.org by posting to bugs-module-optional@rt.cpan.org or visiting https://rt.cpan.org/Public/Dist/Display.html?Name=Module-Optional. AUTHOR
Ivor Williams ivorw-mod-opt at xemaps.com COPYRIGHT
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the license can be found in the LICENSE file included with this module. SEE ALSO
Test::MockModule, Module::Pluggable, Module::Build. perl v5.10.1 2010-12-17 Module::Optional(3pm)
All times are GMT -4. The time now is 02:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy