On May 8, 6:29 am, [email protected] ("[email protected]") wrote:
> Hi,
>
> I want to read the content of a hidden folder like
>
> $path = '/home/user/.gnome2/folder/folder';
>
> in a list but with
>
> opendir(DIR, "$path") || die "folder not found" $!;
> ...                                                              ^^^

There's a syntax error above so you would've seen an
error like this:

    Scalar found where operator expected ...
           near "'folder not found' $!"
    (Missing operator before  $!?)
    syntax error at ..., near "'folder not found' $!"

'die' takes a list so you'll need a comma between
arguments or maybe just:  die "folder not found: $!";

--
Charles DeRykus


--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to