User Control Panel
Advertisements

HELP US, HELP YOU!

commands problem , including
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Bot Depot Forum Index -> Code Help
View unanswered posts
Author Message
svennson
Newbie
Newbie


Joined: 05 Jun 2006
Posts: 29

Reputation: 1.1

PostPosted: Fri Jun 16, 2006 11:11 am    Post subject: Reply with quote

lol found it I placed a sleep(); after it :p


--edit

now testing the commands...
Back to top
mat007
Almost An Agent
Almost An Agent


Joined: 12 Jan 2004
Posts: 1375

Reputation: 15.8Reputation: 15.8
votes: 2

PostPosted: Fri Jun 16, 2006 1:28 pm    Post subject: Reply with quote

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 Sad
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Fri Jun 16, 2006 5:38 pm    Post subject: Reply with quote

Put a 1; at the end of your Perl module. Smile
_________________
Current Site (2008) http://www.cuvou.com/
Back to top
svennson
Newbie
Newbie


Joined: 05 Jun 2006
Posts: 29

Reputation: 1.1

PostPosted: Fri Jun 16, 2006 5:38 pm    Post subject: Reply with quote

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 Very Happy
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Code Help All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group