All,

I am in need of doing the following in a perl/tk app i am writing ... I have
very large text files, about 300 characters per line, and thousands of lines
long.

I need to be able to assign variables to, for example, the characters in
positions 5-10, 50-100, and 280-300 in each line

There is no common delimiter to split each line.

So how can I open a file and process each line in such a way?

i.e.

open(CURRENTFILE, "$source_directory/$file") or die "Cannot open $file: $!";

## What would go here??

close CURRENTFILE;

Thx
Terry
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl

Reply via email to