![]() |
|
Welcome to the Monastery | |
PerlMonks |
Re: Any downsides to this slurp idiom?by talexb (Chancellor) |
on Jun 22, 2018 at 13:36 UTC ( #1217194=note: print w/replies, xml ) | Need Help?? |
That reads pretty cleanly to me .. you're slurping an entire file into a scalar. But then I've been around the language long enough that I recognize what you're doing. When I'm unsure if someone else might not understand a line of somewhat tricky Perl, I just put a comment above the line, then move on. PS: You could also use autodie; to make the code even shorter.
In Section
Seekers of Perl Wisdom
|
|