Hi all,

Is there any way to open a "handle" to an array as we open a handle to a
file??  The condition being we can use that "array handle" everywhere we can
use a file handle....

Like if we do:

$fh = new FileHandle "file.txt", O_APPEND;
print $fh "Written!\n";

it will add a line to the file file.txt.

Now is there any way to do:

$ah = new ArrayHandle @array, O_APPEND;
print $ah "Written!\n";

it should add a line to the array @array.

I realize that the tie function could help. But I'm not able to implement it.

TIA
-Rohit



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to