I'm glad this isn't your exact code, because it isn't even perl. If you want help with code, you should really post your code along with some sample data you are trying to parse. If I read your explanation right though, you want something like this:
open(FILE, "<storedata.txt"); open(OUTP, ">exporteddata.txt"); chomp(my $storenum = <FILE>); # get the storenum while(<FILE>) { print OUTP "$storenum $_"; } close(OUTP); close(FILE);
In reply to Re: parsing/munging problems
by jasonk
in thread parsing/munging problems
by nadadogg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |