jesuashok has asked for the wisdom of the Perl Monks concerning the following question:
There is a strange behaviour with the write() function, that is not documented: a little program would be the best way to explain
#!/usr/bin/perl format STDOUT = @<<<<@<<<<@<<<<<<<<<< $a, $b, $c . $a = "a"; $b = "b"; $c = "c "; write(STDOUT);
I'd expect something like this to be printed:
'a b c '
What I get instead is
'a b c' In the documentation there's no advice that trailing spaces will be automatically removed, nor a way to avoid that is descripted.