Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Grabbing first column of textby CheeseLord (Deacon) |
on Aug 02, 2001 at 20:13 UTC ( [id://101695]=note: print w/replies, xml ) | Need Help?? |
Try one of these one-liners (they have the same output, but I thought the second might be a little easier to understand):
Basically, it reads a line, then sets it to the first group of non-whitespace stuff at the beginning of the line, and then prints the changed line out. Hope this helps! His Royal Cheeziness
In Section
Seekers of Perl Wisdom
|
|