GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  WWW::MECHANIZE::PLUGIN::HELLOWORLD (3)

.ds Aq ’

NAME

WWW::Mechanize::Plugin::HelloWorld - a sample WWW::Mechanize::Pluggable plugin

-head1 SYNOPSIS



  use WWW::Mechanize::Pluggable;
  # This module is automatically loaded into WWW::Mechanize::Pluggable



CONTENTS

DESCRIPTION

This module shows how to mess with the WWW::Mechanize object contained within the WWW::Mechanize::Pluggable object.

Further refinements are left to the reader. Note that the fields in the WWW::Mechanize::Pluggable object are also available to the plugins.

USAGE



    my $mech = new WWW::Mechanize::Pluggable;
    $mech->hello_world;
    # $mech->content now eq hello world



BUGS

None known.

SUPPORT

Contact the author at mcmahon@yahoo-inc.com.

AUTHOR



        Joe McMahon
        mcmahon@yahoo-inc.com



COPYRIGHT

Copyright 2005 by Joe McMahon and Yahoo!

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

WWW::Mechanize::Pluggable, WWW::Mechanize

CLASS METHODS

    import

This function snags any ’helloworld’ key-value pair off the use WWW::Mechanize line and sets the HELLO key to it.

Currently this uses a global variable in the WW::Mechanize::Pluggable namespace to capture the value. This is icky and should be replaced with something more elegant.

    init

The init() function exports hello_world into the caller’s namespace.

    hello_world

Just a demonstration function; replaces the current content with ’hello world’. It should be noted that this is not going to pass most tests for successfully fetched page because WWW::Mechanize hasn’t processed a valid request-response pair.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 WWW::MECHANIZE::PLUGIN::HELLOWORLD (3) 2011-07-02

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.