in reply to Re: convert directory content to dbf
in thread convert directory content to dbf

I used this but i get this error message always
Not enough arguments for opendir at seccon.pl line 22, near "$dirpath + or" Execution of seccon.pl aborted due to compilation errors.

Replies are listed 'Best First'.
Re^3: convert directory content to dbf
by johngg (Canon) on Feb 08, 2007 at 18:56 UTC
    That's because the code you were given is wrong. opendir takes two arguments, not one, and returns true if successful. It may help you to look at the opendir documentation. The code should read something like

    opendir my $dirHandle, $dirpath or die qq{opendir: $dirpath: $!\n};

    I hope this correction helps you make progress.

    Cheers,

    JohnGG