On 09/18/2006 10:11 AM, Emilio Casbas wrote:
Hi,
I have this script;
---
use File::Find;
$File::Find::no_chdir = 0;
find(\&wanted, @ARGV);
sub wanted {
print "$File::Find::name\n" if(-d);
}
---
I want to do a directory search for a given ARG, but no a recursive
search
John W. Krahn wrote:
Emilio Casbas wrote:
Hi,
Hello,
I have this script;
---
use File::Find;
$File::Find::no_chdir = 0;
find(\&wanted, @ARGV);
sub wanted {
print "$File::Find::name\n" if(-d);
}
---
I want to do a directory search for a given ARG, but no
On 18 Sep 2006 at 22:34, John W. Krahn wrote:
I see. Thanx
And this I guess:
Ternary ``?:'' is the conditional operator, just as in C. It works
much like an if-then-else. If the argument before the ? is true, the
argument before the : is returned, otherwise the argument after the :
is return
Beginner wrote:
> On 18 Sep 2006 at 15:05, John W. Krahn wrote:
>>
>>my $dir = '/tmp';
>>
>>opendir my $dh, $dir or die "Cannot open '$dir' $!";
>>
>>print "$dir\n",
>> map !/\A\.\.?\z/ && -d "$dir/$_" ? "$dir/$_\n" : (),
>> readdir $dh;
>
> That's looks nice John...but what is actually
On 18 Sep 2006 at 15:43, David Romano wrote:
> Beginner wrote on Mon, Sep 18, 2006 at 03:24:08PM PDT:
> > > print "$dir\n",
> > > map !/\A\.\.?\z/ && -d "$dir/$_" ? "$dir/$_\n" : (),
> > > readdir $dh;
> > >
> > > John
> >
> > That's looks nice John...but what is actually happening
Beginner wrote on Mon, Sep 18, 2006 at 03:24:08PM PDT:
> On 18 Sep 2006 at 15:05, John W. Krahn wrote:
> > opendir my $dh, $dir or die "Cannot open '$dir' $!";
> >
> > print "$dir\n",
> > map !/\A\.\.?\z/ && -d "$dir/$_" ? "$dir/$_\n" : (),
> > readdir $dh;
> >
> > John
>
> That's lo
On 18 Sep 2006 at 15:05, John W. Krahn wrote:
> Emilio Casbas wrote:
> > I have this script;
> >
> > ---
> > use File::Find;
> >
> > $File::Find::no_chdir = 0;
> > find(\&wanted, @ARGV);
> >
> > sub wanted {
> >print "$File::Find::name\n" if(-d);
> >}
> >
> > ---
> >
>
Emilio Casbas wrote:
> Hi,
Hello,
> I have this script;
>
> ---
> use File::Find;
>
> $File::Find::no_chdir = 0;
> find(\&wanted, @ARGV);
>
> sub wanted {
>print "$File::Find::name\n" if(-d);
>}
>
> ---
>
> I want to do a directory search for a given ARG, but no a rec
Emilio Casbas am Montag, 18. September 2006 17:11:
> Hi,
Hi Emilio
> I have this script;
>
> ---
> use File::Find;
>
> $File::Find::no_chdir = 0;
> find(\&wanted, @ARGV);
>
> sub wanted {
> print "$File::Find::name\n" if(-d);
> }
>
> ---
>
> I want to do a directory search
On 9/18/06, Emilio Casbas <[EMAIL PROTECTED]> wrote:
Hi,
I have this script;
---
use File::Find;
$File::Find::no_chdir = 0;
find(\&wanted, @ARGV);
sub wanted {
print "$File::Find::name\n" if(-d);
}
---
I want to do a directory search for a given ARG, but no a recurs
Hi,
I have this script;
---
use File::Find;
$File::Find::no_chdir = 0;
find(\&wanted, @ARGV);
sub wanted {
print "$File::Find::name\n" if(-d);
}
---
I want to do a directory search for a given ARG, but no a recursive
search, for example
this script show this;
[EMAIL
11 matches
Mail list logo