Final Code (I think it's gonna work!)

2002-09-18 Thread Anthony Saffer
Hello Everyone, Here is the final code for my replacement script. I am about to test it out but I think it will work. Thanks to all who helped!! #!/usr/bin/perl -w use File::Find; my $FileCount = 0; my $LineCount = 0; sub process_files { my $FinalString = ""; my $ConvertedText = "";

Fully Commented Code..

2002-09-18 Thread Anthony Saffer
Hello Again All, Perhaps if you all saw my logic during this script it would help you understand what I am trying to do and maybe see a bit better what is failing. Here is my code again, but fully commented... Thanks! Anthony my $PNdString = ""; # Setting it to blank sub process_files{ #

Re: Question about Error

2002-09-18 Thread Anthony Saffer
structure this statement? Also, what tool are you using to evaluate the code? I'm using Visual SlickEdit but it would be nice to be able to do something like what you just did. Thanks! Anthony - Original Message - From: "Nikola Janceski" <[EMAIL PROTECTED]> To: "&#x

Question about Error

2002-09-18 Thread Anthony Saffer
Good Morning Everyone, Got another question: I wrote my first Perl script last night and it seemed to be error free on Windows. But when I uploaded it to Linux (RH 7.3) it threw an error that I don't understand. From a Google search it seems there could be a number of problems and I am not exp

Simple one :-)

2002-09-17 Thread Anthony Saffer
print(OUTFILE, "$PNdString\n"); This is line #19 in my code. When I run it I am told I cannot have a coma after the filehandle. Why not?? I thought this was standard Perl syntax? Anthony

Thanks!!

2002-09-17 Thread Anthony Saffer
Just wanted to take the time to thank everyone who offered their help to me today in response to my silly questions. I leared a LOT about Perl today and the more I learn the more I like it. Thanks again!! Anthony

One last question

2002-09-17 Thread Anthony Saffer
Hello AGAIN, I have one final question that I think will set me free from this coding haze I've been in all day. Please look at the code below. Here is the idea I am trying to implement: I have a text file with a list of about 56,000 filenames. Only the filenames are in this file. I have ano

Yet another question...

2002-09-17 Thread Anthony Saffer
Hello Again Everyone, I do apologize for all the newbie questions but I really have to get this program written today and this list is my only "live" resource besides Google. I'll try to keep my questions to a minimum. But here is one more if you don't mind. 1. How do I ignore case in my prog

Recognizing Directories...

2002-09-17 Thread Anthony Saffer
can't seem to find a way to do this. I know how to get all files within a directory but how do I RECOGNIZE my directories so I can descend into them to index? Thanks in Advance, Anthony Saffer