Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^3: Stop variable expansionby GrandFather (Saint) |
on Mar 19, 2021 at 03:38 UTC ( [id://11129943]=note: print w/replies, xml ) | Need Help?? |
looking at the solution there is no way I would have been able to work that one out Of course there was a way - RTFM: read the fine manual. In fact both answers gave you the reference you needed: quotemeta. One of Perl's good points is comprehensive documentation. Sometimes it takes some digging, and it's harder if you don't know what you are looking for, but it's almost always there. For future reference you can of course quote problematic strings (as already noted in earlier answers):
Prints:
Output order is backwards in time, but that's pretty normal for errors and warnings.
Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
In Section
Seekers of Perl Wisdom
|
|