Good Afternoon my fellow monks!
I am need of your assistance, I need to look through a file and read it line by line. And this is the tricky bit (for me at least). Whilst reading the first character on line A which should begin with an E and then search through the lines until I find a line beginning with G.
But if we hit a line beginning with h<lower case> we've gone to far and the script should produce an error. Now I though maybe using a FOR loop to loop through the lines one at a time however I've never done this in perl so here was my crack at it:
my $file = <quoteout.dat>;
open my $in, '<', $file;
open my $out, '>', "ERR";
@lines = split('', $_);
for(my $i; $i < 9; $i++)
if($line[$i] eq 'E')
#add one until finds a G or h
UPDATE: I forgot to add the type on data...
Could someone help as I'm not sure if this is right.