in reply to how to add space between printing strings
How are you printing it out?
or maybeprint $f,$l,"\n"; #becomes one of: { local $, = ' '; print $f, $l; print "\n"; } print $f, ' ', $l, "\n"; print join(' ', $f, $l), "\n";
or maybeprint $f . $l . "\n"; # becomes print $f . " " . $l . "\n";
or maybeprint "$f$l\n"; # becomes print "$f $l\n";
But I'm not sure what you're doing now, so it's hard to tell which one is most similar to your existing code.printf "%s%s\n", $f, $l; # becomes printf "%s %s\n", $f, $l;
|
|---|