You might like Perl's -l command line switch. One of the things it does is setting $\ (the output separator) to a supplied value, or to $/. $/ is \n by default. So if you use perl -le'', newlines are automatically added to prints. Together with the for modifier, you can write your script as:
perl -le'print for @INC'
U28geW91IGNhbiBhbGwgcm90MTMgY
W5kIHBhY2soKS4gQnV0IGRvIHlvdS
ByZWNvZ25pc2UgQmFzZTY0IHdoZW4
geW91IHNlZSBpdD8gIC0tIEp1ZXJk
In reply to Re: contents of @INC
by Juerd
in thread contents of @INC
by tbarron
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |