Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^9: warning: use of uninitialized valueby robby_dobby (Hermit) |
on Jun 26, 2015 at 05:47 UTC ( [id://1132064]=note: print w/replies, xml ) | Need Help?? |
Well, in that case - you can do something like this:
From your original code sample, I surmise that you need these IDs for generating an m4 macro. Using a hash might be useful for you since you can just look that up when generating the m4 file later on. Bear in mind all points raise in this thread, use close, closedir properly. This got longer than expected. Next time around, you could save us all a lot of back and forth by including a small data sample as I showed above with __DATA__. Also, work through perlintro or an introductory perl book(learn.perl.org lists quite a few of them and some freely available online) and ask more questions here when you get stuck. Good luck!
In Section
Seekers of Perl Wisdom
|
|