Writing to Filehandle

D

Diana

Hi,
I am writing to a file print like print <filehandle> "some stuff"
I want to get the row and col in number where the filehandle has written,
is it possible to get the values? , another how can I force fully move the
position of curser so that it writes on/from row,col I want
thanks
D
 
T

Tad McClellan

Diana said:
I want to get the row and col in number where the filehandle has written,


There are no rows and columns in a file, just a stream of bytes.

is it possible to get the values? ,


You can get the byte position of the file pointer with:

perldoc -f tell

another how can I force fully move the
position of curser so that it writes on/from row,col I want


You can set the position of the file pointer with:

perldoc -f seek
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top