>>>>> "gd" == guba@vi-anec de <[email protected]> writes:

  gd> I want to read the content of a hidden folder like

hidden folders in unix are only hidden when listed in a shell without
the -a option to ls. they are never hidden to programs.

  gd> $path = '/home/user/.gnome2/folder/folder';

are you sure there is a 'folder' inside the 'folder' dir? odd to see
duplicate names like that in a path.

  gd> in a list but with

  gd> opendir(DIR, "$path") || die "folder not found" $!;

don't quote scalars like that as it isn't needed and can lead to bugs.

  gd> I got an error message.

it helps to actually post the error message! you printed $! but we don't
know what happened out of the many reasons it could have failed.

uri

-- 
Uri Guttman  ------  [email protected]  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

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


Reply via email to