Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery


by root (Scribe)
on Dec 23, 1999 at 00:50 UTC ( #1171=perlfunc: print w/replies, xml ) Need Help??


See the current Perl documentation for CGI::Switch.

Here is our local, out-dated (pre-5.6) version:

CGI::Switch - Try more than one constructors and return the first object available

 use CGISwitch;


 use CGI::Switch This, That, CGI::XA, Foo, Bar, CGI;

 my $q = new CGI::Switch;

Per default the new() method tries to call new() in the three packages Apache::CGI, CGI::XA, and CGI. It returns the first CGI object it succeeds with.

The import method allows you to set up the default order of the modules to be tested.


perl(1), Apache(3), CGI(3), CGI::XA(3)


Andreas König <>

Log In?

What's my password?
Create A New User
[Discipulus]: i hope too, vacuum cleaner permitting, 2-3 afternoon to build. Or is the 1:1 serie? ;=)
[Tanktalus]: Sure, no one is active for hours and hours in the cb, so I go to upgrade the db, and then someone is active. Sheesh :)
[Discipulus]: anyway poppins probably died with the last night cold. But is not normal to see them in dec. they must pop in April
NodeReaper eyes the thorns in the side
Discipulus : the party puller!
[Discipulus]: I was trying to solve this but i'm not. my regex-fu is stuck at primary school

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2017-12-18 21:37 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (498 votes). Check out past polls.