in reply to Re: Adding items to arrays: best approach?
in thread Adding items to arrays: best approach?
Thanks for your appreciation. I'm trying to be as clear as possible when asking questions. And in the meantime, I'm also learning the syntax to be used in messages, like showing the real name and also the username (or how do you call it with PerlMonks?): see the start of this reply... :-)
I'm definitely taking all the great advice given by many people here into account. I've already changed my script in many ways. And indeed, the testx was just an example I gave. The real files are not incremental by numbers but totally different names in totally different (sub)directories. I just wanted to point out the difference between how to extend arrays.
I've also seen Perl has a zillion modules/libraries that do a lot of the hard work behind the scenes. One of them is indeed File::Spec but there are more, lots more...
I'm still learning (and eager to learn) the language of Perl and I'm realizing I still have a long way to go. But by practicing it step by step I'm convinced I'll be able to do whatever I want it to do (this might be an "overstatement"... :-)).
Maybe little bit saying why I'm using Perl for the moment: automatic Java code generation. I'm using XML files as input and using the amazing Text::Xslate and XML::LibXML::Simple Perl modules together with appropriate code templates to generate that code. It's a bless!!!
Best,
--Geert
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Adding items to arrays: best approach?
by hippo (Archbishop) on May 29, 2020 at 14:26 UTC | |
|
Re^3: Adding items to arrays: best approach?
by kcott (Archbishop) on May 30, 2020 at 04:36 UTC |