I'm a newbie to Perl on *nix and am in the process of
converting from MacPerl to OSX and I've just recently
downloaded the developer tools for OSX10.2 because I
was under the impression that they're necessary to
really use Perl on OSX (i.e. to use CPAN, Camel Bones,
etc). But installing the
Hi all,
I'm converting a PHP script to perl so I can run it on the command line
in Panther. The following sub routine is a cut down example of what one
I'm using. It gets called once, passing the name of a directory. It is
meant to recursively call itself for each directory it finds, so it
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
On 10/02/2004, at 11:27 (GMT), wren argetlahm, [EMAIL PROTECTED] wrote:
I'm a newbie to Perl on *nix and am in the process of
converting from MacPerl to OSX and I've just recently
downloaded the developer tools for OSX10.2 because I
was under the impression that they're necessary to
really use
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 =
On Feb 10, 2004, at 8:39 AM, Phil Dobbin wrote:
IIRC, the latest Perl (5.8.3) doesn't require the dev tools to be
installed (I *think* that dependency seen off in 5.8.2) but maybe
that's only on 10.3.x.
Kind of a moot point, isn't it? You'd need make gcc to install 5.8.3
to begin with...
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
On Tue, 10 Feb 2004, wren argetlahm wrote:
I'm a newbie to Perl on *nix and am in the process of converting from
MacPerl to OSX and I've just recently downloaded the developer tools for
OSX10.2 because I was under the impression that they're necessary to
really use Perl on OSX (i.e. to use
Thanks everyone for the information, especially Chris
Devers for the suggestions on how to crop things out.
I just realized that the *.dmg file for the dev tools
is on my startup drive, so if I move that to another
drive it should free up enough space if I don't
install the documentation.
~wren
Installing the dev tools has done horrible things to
my computer. The drive says it has 80MB or so left,
but most every program I run complains about the disk
being full and won't run; including trying to burn CDs
to back things up before repartitioning it all. Is
there any way to uninstall the
On Tue, 10 Feb 2004, wren argetlahm wrote:
Installing the dev tools has done horrible things to my computer.
The drive says it has 80MB or so left, but most every program I run
complains about the disk being full and won't run; including trying
to burn CDs to back things up before
On Tue, 10 Feb 2004, Sherm Pendley wrote:
On Feb 10, 2004, at 8:12 PM, wren argetlahm wrote:
there any way to uninstall the dev tools?
Yes - and it's a Perl script. Now ain't that ironic? ;-)
Save this as a last resort :)
I think [temporarily] freeing up swap files by rebooting will
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
13 matches
Mail list logo