Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: To read files from two dirby GrandFather (Saint) |
on Apr 11, 2022 at 20:55 UTC ( [id://11142923]=note: print w/replies, xml ) | Need Help?? |
What do you mean by "combine"? Do you mean copy them into the same directory, or do you mean concatenate them into one file and put the result in some directory, or do you mean process first one then the other in the same operation? What do you mean by "not working". Are there error messages (if so, what - be specific), does the processor in your computer melt, or does something else happen or not happen? I can't tell where you are having trouble, but you might like to start from here:
and expand that code just enough to demonstrate the issue. Don't do any more work than adding file name variables and manipulating them, then printing the result so you can see, and can show us, how you expect the file names to be handled. For reference, the code above prints:
Show us what your equivalent code prints and tell us what you expected to get.
Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
In Section
Seekers of Perl Wisdom
|
|