Using tell function to check a file handle : tell « File « Perl






Using tell function to check a file handle

    

open (FILEHANDLE, "<file.txt") or die "Cannot open file.txt";

seek FILEHANDLE, 12, 0;

print tell FILEHANDLE;

close (FILEHANDLE);

   
    
    
    
  








Related examples in the same category

1.The tell Function returns the current byte position in the file
2.The tell function returns the current byte position of a filehandle.