Dear Athanasius,
Thank you for going through my comments and providing feedback. I am quite happy that I was not completely wrong about all lines.
However some questions remain:
Why was the subroutine called with 6 passed as an argument. Was this just for demonstrating that not only strings but also numbers can be passed to a sub?.
Could you please clarify why only the first argument $ra is passed an the others remain in the array? Does that mean that arguments to a sub are passed in some kind of for loop?
my( $ra ) = @_; # variable for the argument(s) passed to the sub, @_ accepts every + argument passed to sub, i.e. the files passed to main
Looking forward to your feedback. Will work on the inital code and try to use more subroutines.
Thanks a mil for your support
Kind regards
C.In reply to Re^9: search and replace strings in different files in a directory (Path::Tiny)
by PitifulProgrammer
in thread search and replace strings in different files in a directory
by PitifulProgrammer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |