Re: PHP to perl - recursion limitation?

2004-02-11 Thread Matthew Montano
You could/can always run php from the command-line (including panther.) php -f scriptname.php Output is obviously to stdout rather than through the Apache server, but it works (and it handy to initiate php scripts from crontabs that do useful work. Matthew http://www.redmac.ca - Getting

Re: PHP to perl - recursion limitation?

2004-02-10 Thread Bill Birkett
Kynan- You should consider using the perl module File::Find to solve this problem. See: http://search.cpan.org/~nwclark/perl-5.8.3/lib/File/Find.pm It's a built-in module, so there's nothing to install. Just a few lines of code and you're done. -Bill Hi all, I'm converting a PHP script

Re: PHP to perl - recursion limitation?

2004-02-10 Thread Sherm Pendley
On Feb 10, 2004, at 7:34 AM, kynan wrote: Is this a limitation? No, it's a bug in your code. :-( As Bill mentioned, the File::Find module is made for recursing through directories. It still might be useful for you to know what's going wrong, though. sub replaceEkstros{ my $startDir =

Re: PHP to perl - recursion limitation?

2004-02-10 Thread kynan
Thanks Sherm, Mike and Bill, Totally helpful and much appreciated. K On 11/02/2004, at 1:27 AM, Sherm Pendley wrote: On Feb 10, 2004, at 7:34 AM, kynan wrote: Is this a limitation? No, it's a bug in your code. :-( As Bill mentioned, the File::Find module is made for recursing through

Re: PHP to perl - recursion limitation?

2004-02-10 Thread Edward Moy
On Feb 10, 2004, at 5:45 PM, Peter N Lewis wrote: my $dh; opendir $dh, $startDir || die $!; while (my $entry = readdir($dh)) { Or consider using DirHandle: use DirHandle; my $dh = DirHandle-new($startDir) or die $!; while (defined(my $entry = $dh-read())) { ... Edward Moy [EMAIL