in reply to Statistics from a txtfile
This matches an underscore or letter (the {1} is unnecessary, char classes always match one char only, which is why you need modifiers like * or + to make it do something different)/^[_a-zA-Z][^.]{1,7}\.txt$/
Then you can do
which will go through the file line by line putting the data in $_while(<READFILE>) { # something here }
P.S. put <code> tags around your code to make it display properly in a post.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Statistics from a txtfile
by mbdc566021 (Initiate) on Jan 02, 2008 at 18:27 UTC |