dbae has asked for the wisdom of the Perl Monks concerning the following question:
Here are some hints from tcsh:#!/opt/local/bin/perl use strict; use diagnostics; use warnings; use File::Find; my $d = "/Users/dbae/tmp"; find(\&p,$d); sub p { };
Here is the output:H2:~% pwd /Users/dbae H2:~% ls -ld . drwxr-xr-x+ 99 dbae dbae 3366 3 May 14:41 ./ H2:~% ls -ld tmp drwxr-xr-x 68 dbae dbae 2312 3 May 14:14 tmp/ H2:~% ~/bin/t # name of file containing perl code
What am I doing wrong? Thanks. DavidCan't cd to (/Users/dbae/tmp/) tmpvdlE9a: Permission denied at /Users/dbae/bin/t line 7 Can't cd to (/Users/dbae/tmp/) tmpZgzgiz: Permission denied at /Users/dbae/bin/t line 7
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Puzzled by File::Find
by Eliya (Vicar) on May 03, 2012 at 14:15 UTC | |
by dbae (Beadle) on May 03, 2012 at 15:15 UTC | |
by Anonymous Monk on May 03, 2012 at 15:32 UTC | |
by dbae (Beadle) on May 03, 2012 at 15:47 UTC | |
|
Re: Puzzled by File::Find
by stevieb (Canon) on May 03, 2012 at 14:15 UTC | |
|
Re: Puzzled by File::Find
by Khen1950fx (Canon) on May 03, 2012 at 14:29 UTC |