Overridden methods

2004-11-23 Thread Michael Kraus
G'day... If a sublass has overrides a method in a superclass, and the subclasses method calls the superclass's method, is there any mechanism to detect that the superclass' method has been overridden? I'm wanting to write a method in an abstract class that must be overriden by it's children. If

Re: perl 5.8 + GD problem

2004-11-23 Thread MuthuKumar
> [Wed Nov 24 11:00:28 2004] Plotting graph of TCP accesses. > /usr/bin/perl: error while loading shared libraries: > /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/auto/GD/GD.so: > undefined symbol: gdFontGetSmall > > # nm /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/auto/GD/G

perl 5.8 + GD problem

2004-11-23 Thread MuthuKumar
Hello All, I am trying to use squid-graph tool. http://squid-graph.securlogic.com/files/ Execution of perl script makes, # ./squid-graph --output-dir=/tmp/test/ < /usr/local/squid25s7/var/logs/access.log WARNING: Are you sure you want to output your files to "/tmp/test"? Continuing

Re: Using regular expressions

2004-11-23 Thread Prasanna Kothari
Hi, Replace $output = ~ s/AAA*?BBBt/AAA 111 *?222 BBB/g; with my $output =~ s/AAA*?BBBt/AAA 111 *?222 BBB/g; You can use "perl -c " which will show you such type of errors. After opening the output file, it's better to check if the file is opened successfully(as done in the case of INPUT). I thin

RE: Spam:RE: Spam:Re: How do I create an empty anonymous hash with a hash declaration?

2004-11-23 Thread Michael Kraus
You're right... An attempt to execute `$self->{DBFields}->{$field} = ""` results in the error "Not a HASH reference at line x" Regards, Michael S. E. Kraus Software Developer Wild Technology Pty Ltd ___ ABN 98 091 470 692 Level 4 Tiara, 306/9 Crystal Street, Waterloo

RE: Spam:Re: How do I create an empty anonymous hash with a hash declaration?

2004-11-23 Thread Michael Kraus
G'day... When using our %Super_DB_Object = ( TableName => "", DBFields => {}, NotNull => [], ); Make sure you remove: my $field_hash = {}; $self->{DBFields} = $field_hash; And try accessing the hash directly. If you don't see what I mean then, let me know - as a complet

RE: Spam:RE: Recursive function

2004-11-23 Thread Michael Kraus
G'day... These lines look wrong (but I may be wrong): > $exit_status = `dir` ; > print "\nCurrently in - > >\n$exit_status\n==\nDepth > ($depth)\n" ; Shouldn't that be: $exit_status = `pwd`; Also, check out the glob function - it'

Re: How do I create an empty anonymous hash with a hash declaration?

2004-11-23 Thread Gunnar Hjalmarsson
Michael Kraus wrote: our %Super_DB_Object = ( TableName => "", DBFields => {}, NotNull => [], ); ---CUT--- However, when I do that, I get the error: "Odd number of elements in hash" That code does not generate the warning message you mention. Please copy and post a short bu

How do I create an empty anonymous hash with a hash declaration?

2004-11-23 Thread Michael Kraus
G'day all... I've got a hash: ---CUT--- our %Super_DB_Object = ( TableName => "", DBFields => undef, NotNull => [], ); ---CUT--- ...and later (in a function) ... ---CUT--- my $field_hash = {}; $self->{DBFields} = $field_hash; ---CUT--- (Where the hash has been aliased t

Mutliple Regexs within the same block, but seems to be bypassing when I can see the data there

2004-11-23 Thread Wagner, David --- Senior Programmer Analyst --- WGO
I have been working on thie script to take MVS JCl/Proc's and bring them together in a single output. I parsing out the DSN ( data file name ) and then attempting to determine if input, output or delete. Here is the code ( quite large unforunately ). I have the data in

re: Using regular expressions

2004-11-23 Thread FlashMX
Hi, The code below opens a file and writes the contents to a temporary file. I need to do a search and replace of certain matches in the files and I thought I might be able to use regular expressions. Being new to perl and now trying expressions has almost put me over the edge. When I run the

RE: How to monitor a scritp

2004-11-23 Thread NandKishore.Sagi
I had a similar problem running my perl script in cron. Finally it turned out to be a problem with profile. At our end there is a profile script that gets executed whenever we open a Shell prompt. When I got that to run before my script it started working fine. Also try giving the explicit path to

RE: How to monitor a scritp

2004-11-23 Thread Ajey Kulkarni
also,often its easy to forget cron.allow and cron.deny files being updated. Make sure u've right access & crontab -e (for user specific) may also help to test ur script locally. May be you should check with the cron/crontab tweakins than Perl list. :) On Tue, 23 Nov 2004, Larsen, Errin M HMMA/IT

RE: How to monitor a scritp

2004-11-23 Thread Larsen, Errin M HMMA/IT
> -Original Message- > From: Mauro [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 23, 2004 3:44 AM > To: [EMAIL PROTECTED] > Subject: How to monitor a scritp > > > Hi all, > I made a script that works fine. > When a try to run it in crontab it seems it doesn't work. > It makes an em

Re: Recursive function

2004-11-23 Thread Dave Gray
> I know I can use the "find.pm". But, I'd like to know why the recoursive > I did is wrong. There are no debug print statements in your code. There are also a lot of 'next' statements, which always make me suspicious. See comments in chopped-up code below. Good luck, Dave > == Start of code [sn

Win32::OLE Word Macro Conversion

2004-11-23 Thread Richard Barrett-Small
Hi there all, I'm writing a simple script to batch convert word documents into HTML. However, I need also to disable the impossibly stupid "Smart Tags" that get embedded. The VBA macro below contains the important lines ( .EmbedSmartTags = False, .LabelSmartTags = False). Could anyone give me

Re: File manipulation

2004-11-23 Thread FlashMX
On Tue, 23 Nov 2004 09:44:00 -0500 (EST), Chris Devers wrote: >On Tue, 23 Nov 2004, FlashMX wrote: > >> I'm trying to do this script on my own as suggested by someone in this >> group. > >Glad to hear it :-) > >> I'm getting confused on the login. > >I don't see where the program or the problem de

Re: File manipulation

2004-11-23 Thread Chris Devers
On Tue, 23 Nov 2004, FlashMX wrote: > I'm trying to do this script on my own as suggested by someone in this > group. Glad to hear it :-) > I'm getting confused on the login. I don't see where the program or the problem description involves logging in to anything -- is that really what you me

File manipulation

2004-11-23 Thread FlashMX
I'm trying to do this script on my own as suggested by someone in this group. I have the book "Teach yourself Perl in 21 days" So far I've been able to open the file and execute a grep to search for certain text and then display the hits. I'm getting confused on the login. I need to open the o

RE: String To Number Conversion

2004-11-23 Thread ext-Chetak.Sasalu
Hi , You do not need a atoi function in Perl. All the strings can be used as a number based on the context. for example $str1 = '50'; $str2 = '2'; $sum = $num1 + $num2; # sum is now 52 $str_cat = $num1.$num2; #str_cat is 502 HTH, Chetak -Original Message- From: A Madhusudan-A532

Re: False warning by warnings.pm

2004-11-23 Thread David le Blanc
On Mon, 22 Nov 2004 09:29:04 -0500, Bob Showalter <[EMAIL PROTECTED]> wrote: > Ramprasad A Padmanabhan wrote: > > I am using Net::Telnet in one of my perl scripts. Problem is every > > time it runs with use warnings It prints out warnings like > > > > Unrecognized escape \s passed through at ...

Re: missing results

2004-11-23 Thread Rene Borchers
On Tue, 2004-11-23 at 12:24, Rene Borchers wrote: Yes, problem solved added the line 'User-Agent' => 'Mozilla/4.76 [en] (Win98; U)'; and indeed 33200 returned thanks Rene > Hi, > > I'am fiddling around with the LWP Class, wrote myself a program which > sends a query to altavista. > > When

RE: Recursive function

2004-11-23 Thread Eaton Elyahu Doron
I sent it again, since I didn't got a reply that satisfy me. I know I can use the "find.pm". But, I'd like to know why the recoursive I did is wrong. Thanks, Eli. -Original Message- From: Eaton Elyahu Doron [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 9:44 PM To: [EMAIL P

Re: missing results

2004-11-23 Thread Ing. Branislav Gerzo
Rene Borchers [RB], on Tuesday, November 23, 2004 at 12:24 (+0100) wrote these comments: RB> When I search altavista for dummie it returns 33.200 hits, when I use RB> perl it returns 33,100 hits. Any suggestions where are the 100 missing RB> hits. I can't simulate it right now, I did similar thin

missing results

2004-11-23 Thread Rene Borchers
Hi, I'am fiddling around with the LWP Class, wrote myself a program which sends a query to altavista. When I search altavista for dummie it returns 33.200 hits, when I use perl it returns 33,100 hits. Any suggestions where are the 100 missing hits. Rene #!/usr/bin/perl ##-

RE: How to monitor a scritp

2004-11-23 Thread Thomas Bätzler
Ing. Branislav Gerzo <[EMAIL PROTECTED]> wrote: > Mauro [M], on Tuesday, November 23, 2004 at 10:44 (+0100) wrote: > > M> I made a script that works fine. > M> When a try to run it in crontab it seems it doesn't work. > > it is maybe path related problem. Try tu run exactly that > script as in

Re: How to monitor a scritp

2004-11-23 Thread Ing. Branislav Gerzo
Mauro [M], on Tuesday, November 23, 2004 at 10:44 (+0100) wrote: M> I made a script that works fine. M> When a try to run it in crontab it seems it doesn't work. it is maybe path related problem. Try tu run exactly that script as in crontab, but be in other directory, where script, or crontab run

How to monitor a scritp

2004-11-23 Thread Mauro
Hi all, I made a script that works fine. When a try to run it in crontab it seems it doesn't work. It makes an empty output log. I checked for correct path in external command I run into script because I know crontab hasn't got any environment variable but pheraps I forgot to check something... H