in reply to Re^3: Perl Module Object - Return fail/success with a fault string
in thread Perl Module Object - Return fail/success with a fault string
I checked it into a google code SVN repo, so here ya go.
(Again, I still kinda consider myself a perl noob, atleast as far as creating perl modules goes and using OOP in perl, so don't hate! lol)
http://big-ip-f5-api.googlecode.com/svn/trunk/Basically, if you look in the sample (which some of it works, some doesn't, I doubt you have an F5 laying around to test it on though), the code is as below
my $connection = BigIP::F5->new($settings); die ("Unable to connect to " . $settings{'server'} . "\nIt said: " . $ +connection->fault) if (!$connection);
I basically need the logic behind that to work, Yes I could make my module just die or croak, but id rather give the user the ability to end it in their own way if it throws a fail code
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Perl Module Object - Return fail/success with a fault string
by Corion (Patriarch) on Jan 03, 2012 at 21:10 UTC |