The goal was a replacement for <FILE>, so anything that doesn't return what <FILE> would is buggy. … I didn't consider autochomping a bug.
O.K., that clarification gives me enough context where you were heading to.
An added chomp($data) before the split /\n/,,-1 will also conform to that abstraction of lines.
Update: Added the missing ,-1
In reply to Re^5: how to open a data file via http
by pKai
in thread how to open a data file via http
by mwhiting
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |