[kw-pm] File I/O

Matt Sergeant matt at sergeant.org
Fri Aug 27 07:04:43 PDT 2010

Read perlopentut. It has a section on "hit counters" which is probably 
what you want.

Robert Pike wrote:
> Hey all,
>      Wondering what people most commonly use to open, lock, read, update, and write back to a file. I've been looking at using the open function along with +>  but cannot seem to read from the filehandle using the following piece of code (just simple test code) :
> open(FH, "+>somepath");
> my @ca =<FH>;
> print join("<br>", @ca); // prints nothing to the screen
>      I was wondering what alternatives peopel would give to the above code but also an explanation to why the above code doesn't result in the printing of the contents of the file (to the screen)? Thanks in advance for any insight given.
> Rob
> _______________________________________________
> kw-pm mailing list
> kw-pm at pm.org
> http://mail.pm.org/mailman/listinfo/kw-pm

More information about the kw-pm mailing list