OpenInteract2::Manage::%%TYPE%%::%%CLASS%% - Managment task
#!/usr/bin/perl use strict; use OpenInteract2::Manage; my $website_dir = '/home/httpd/mysite'; my %PARAMS = ( ... ); my $task = OpenInteract2::Manage->new( 'COMMAND', \%PARAMS ); my @status = $task->execute; foreach my $s ( @status ) { my $ok_label = ( $s->{is_ok} eq 'yes' ) ? 'OK' : 'NOT OK'; my $default_label = ( $s->{is_default} eq 'yes' ) ? ' (default) ' : ''; print "Status OK? $s->{is_ok}\n", "$s->{message}\n"; }
In addition to the standard entries Each status hashref includes:
Description
Copyright (C) 2004 A. U. Thor. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
A. U. Thor, <a.u.thor@a.galaxy.far.far.away>
SAMPLE }
To install OpenInteract2::URL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OpenInteract2::URL
CPAN shell
perl -MCPAN -e shell install OpenInteract2::URL
For more information on module installation, please visit the detailed CPAN module installation guide.