in reply to Re: File reading with hashes
in thread File reading with hashes
Thank you very much for triying to help me out. However I now get a permission error. "could not open /x02/bee/MY_FILE Permission denied at ./base_ports.pl line 9, <FH2> line 3103. but when I tried to open the file before going on to the regex section it just works, As in it opens up the files on the screen
my %users = %{user_paths()}; foreach my $user (keys %users) { if (-e "$users{$user}/MY_FILE") { open (FH2, "<$users{$user}/MY_FILE") or die "could not open $u +sers{$user}/MY_FILE $!"; while (my $line = <FH2>) { print $line; } } }
Also I tried commented out the die function and tried to riun and then I get that same "readline" error. Any thoughts?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: File reading with hashes
by Random_Walk (Prior) on Aug 08, 2013 at 09:32 UTC | |
by Bindo (Acolyte) on Aug 08, 2013 at 10:01 UTC | |
by rnewsham (Curate) on Aug 09, 2013 at 07:31 UTC | |
|
Re^3: File reading with hashes
by Random_Walk (Prior) on Aug 08, 2013 at 11:22 UTC | |
by Bindo (Acolyte) on Aug 09, 2013 at 12:04 UTC | |
by poj (Abbot) on Aug 09, 2013 at 13:21 UTC |