in reply to foreach type of deal?
One way to get rid of the g is to use the substitution operator (s///). This deletes the g if it is the 1st character on a line:
while (<>) { s/^g//; }
- Show a few lines of your input (in "code" tags), if you need more help.
- perlintro
In Section
Seekers of Perl Wisdom