Re: read the content of a hidden folder in a list

2011-05-08 Thread C.DeRykus
On May 8, 6:29 am, g...@vi-anec.de ("g...@vi-anec.de") 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" $!; > ...

Re: read the content of a hidden folder in a list

2011-05-08 Thread Uri Guttman
> "SHC" == Shawn H Corey writes: SHC> On 11-05-08 09:29 AM, g...@vi-anec.de wrote: >> opendir(DIR, "$path") || die "folder not found" $!; SHC> If you are checking if the folder exists, use the -d file test: SHC> if( -d $path ){ SHC> print "The folder $path exists\n"; SHC> }els

Re: read the content of a hidden folder in a list

2011-05-08 Thread Shawn H Corey
On 11-05-08 09:29 AM, g...@vi-anec.de wrote: opendir(DIR, "$path") || die "folder not found" $!; If you are checking if the folder exists, use the -d file test: if( -d $path ){ print "The folder $path exists\n"; }else{ print "Sorry, not path to $path\n"; } See `perldoc perlfunc` and sear

Re: read the content of a hidden folder in a list

2011-05-08 Thread Uri Guttman
> "gd" == guba@vi-anec de 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

read the content of a hidden folder in a list

2011-05-08 Thread g...@vi-anec.de
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" $!; I got an error message. Thanks for the help! guba -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For addition