in reply to Re: print list to socket
in thread print list to socket
Perhaps something along these lines would be better? (I've used "XX" instead of "\r" for visibility).
use strict; use warnings; print map { chomp; qq{$_ XX\n} } <DATA>; __END__ line 1 line 2 line 3
and the output
line 1 XX line 2 XX line 3 XX
If you do use English; it is a good idea to specify the -no_match_vars option to avoid a performance hit on all regexen in your script.
# Avoid performance hit on regexen by specifying # -no_match_vars. # use English q{-no_match_vars};
I hope this is of interest.
Cheers,
JohnGG
|
|---|