Joined: 03 May 2006 Posts: 2292 Location: Colorado
Posted: Sat Mar 05, 2005 6:05 pm Post subject:
The complete lack of code makes it impossible to help you. This kind of issues are why globals are bad. Instead of using globals you should be passing the variables. Then you would know exactly where and what each value was and you wouldn't have to guess. If you do want help with this though you will have to provide more information and code. _________________ Eric256
Proud previous owner and current admin of Bot-depot.com
I had this problem when I started using strict in my bots. To declare a variable or hashref or whatever as global, so that all the included files and subroutines can use it, declare it with "our" instead of "my"
Joined: 29 Dec 2004 Posts: 367 Location: Australia
Posted: Mon Mar 07, 2005 8:40 am Post subject:
Thanks Cer! That works, my lack of understanding of external files it seems was the problem, i was thinking they would work something like php includes.
btw, i couldnt exactly pass them, it was called by a handler correct me if i'm wrong....
Thanks Cer! That works, my lack of understanding of external files it seems was the problem, i was thinking they would work something like php includes.
btw, i couldnt exactly pass them, it was called by a handler correct me if i'm wrong.... [right][snapback]46463[/snapback][/right]
You DO understand the concept of passing variables to subs right? And...PHP may be similar to Perl, but it is NOT Perl. You shouldn't be expecting Perl to act the same way. _________________ Check out Botworld! A dev resource for things bot.
Downloads, articles, news, fourm and more.
http://botworld.marzopolis.com
I make no sense because I asked you if you knew about that concept and told you Perl isn't the same as PHP? LOL Ok, whatever. Get some sense yourself before you start telling others they need some. _________________ Check out Botworld! A dev resource for things bot.
Downloads, articles, news, fourm and more.
http://botworld.marzopolis.com
Joined: 29 Dec 2004 Posts: 367 Location: Australia
Posted: Fri Mar 11, 2005 5:02 am Post subject:
QUOTE(alienz @ Mar 8 2005, 11:04 AM)
I make no sense because I asked you if you knew about that concept and told you Perl isn't the same as PHP? LOL Ok, whatever. Get some sense yourself before you start telling others they need some. [right][snapback]46640[/snapback][/right]