http://www.perlmonks.org?node_id=554441

jesuashok has asked for the wisdom of the Perl Monks concerning the following question:

Dear fello monks,

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.

"Keep pouring your ideas"

Considered by shmem: unapprove (plagiarized from p5p)
Approval removed by Arunbear; Keep: 1, Edit: 13, Reap: 11