Scalar I/O

LTjake on 2003-08-25T16:56:27

Having read the second page of Nat and Tom's "Cooking with Perl" article, I really wish scalar I/O was available in earlier versions of perl. In my SAUCE and XBin modules, i use a combination of a $counter variable and the substr() function to read data out of strings. Instead, I could then use the same read_data() and write_data() methods as i do with regular filehandles.

Handy.


IO::Scalar?

Juerd on 2003-08-25T19:46:30

Worksforme

Re:IO::Scalar?

LTjake on 2003-08-25T22:54:01

Hey Juerd, thanks for the reply.

Sucks that it adds another dependency, but it sure does fit the need! You rock, thanks. :)