SPUG: Tie::File module

Luis Medrano lmzaldivar at mac.com
Thu Feb 19 12:34:14 CST 2004


I try to experiment with Tie::file module buth I have a question. I'm running this code:

tie @lines, 'Tie::File', 'file' or die ...;

print "$line[0] \n";
untie @lines;

I was specting to print just one line of the file but it print the whole file. Any idea why or how can I do it so it will print just one line??


More information about the spug-list mailing list