in reply to Re: (tye)Re: Recursive opendir without
in thread Recursive opendir without

$dir is a string (aka "toto") and you are trying to use it as a directory handle. How do you expect that to work?

Let me give you a hint.

Create a file called "tst" and run the following snippet without strict on.

my $file = "tst"; open ($file, $file) or die "Cannot read $file: $!"; print <tst>;
How did a filehandle get opened on the filehandle tst?

Now read what strict 'refs' is supposed to disallow.

UPDATE
Not my link. tye pointed his tutorial out to me and I made the change...

Replies are listed 'Best First'.
Re: Re (tilly) 3: Recursive opendir without
by bobione (Pilgrim) on Apr 12, 2001 at 15:28 UTC
    Great thanks for your link strict. !
    BoBiOne