in reply to Re: C vs perl
in thread C vs perl

What about using strtok in C? That will give you something similar to foreach (split).