User Control Panel
|
|
|
 |
Advertisements
|
 |
|
|
|
HELP US, HELP YOU!
|
| Author |
Message |
svennson Newbie

Joined: 05 Jun 2006 Posts: 29
 
|
Posted: Fri Jun 16, 2006 11:11 am Post subject: |
|
|
lol found it I placed a sleep(); after it :p
--edit
now testing the commands... |
|
| Back to top |
|
 |
mat007 Almost An Agent

Joined: 12 Jan 2004 Posts: 1375
   votes: 2
|
Posted: Fri Jun 16, 2006 1:28 pm Post subject: |
|
|
You obviously dont have any knowledge at all, why would you want to use package twice?
| svennson wrote: | changed the pm file to
| Code: | package Abra;
use strict;
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
require Exporter;
@ISA = qw(Exporter AutoLoader);
@EXPORT = qw(
);
$VERSION = '0.01';
package Commands::Abra;
sub process {
my ($x) = @_;
$x += 100;
return $x; # return the new $x
}
|
it works but the perl stops after that  |
|
|
| Back to top |
|
 |
Cer Upgraded Agent

Joined: 03 Feb 2004 Posts: 3776 Location: Michigan
  votes: 4
|
Posted: Fri Jun 16, 2006 5:38 pm Post subject: |
|
|
Put a 1; at the end of your Perl module.  _________________ Current Site (2008) http://www.cuvou.com/ |
|
| Back to top |
|
 |
svennson Newbie

Joined: 05 Jun 2006 Posts: 29
 
|
Posted: Fri Jun 16, 2006 5:38 pm Post subject: |
|
|
I really am not a pro ... im just learning perl , I know php but not perl....
not yet , and I supose you gonne help me learn it  |
|
| Back to top |
|
 |
|
|