in reply to Undocumented join() feature, now defunct?

Is the behaviour of join with a tied scalar prior to 5.18.2 correct but not clearly explained in the documentation or is it a bug that has now been fixed?

Looks like it was a bug that finally got fixed ... probably as they were fixing an adjacent bug ... an optimization :)

Yup, a bug fixed by accident :) Fold join to const or stringify where possible
you'll see a TIESCALAR test but not as the first argument like you have :) http://perl5.git.perl.org/perl.git/blob/HEAD:/t/op/join.t
http://perl5.git.perl.org/perl.git/history/HEAD:/t/op/join.t

So you should perlbug this johngg to make it official

  • Comment on Re: Undocumented join() feature, now defunct? (bug)

Replies are listed 'Best First'.
Re^2: Undocumented join() feature, now defunct? (bug)
by ikegami (Patriarch) on Oct 30, 2014 at 14:32 UTC

    That commit is unrelated. There's no constant folding in the OP's code.

    There's nothing to submit with perlbug. The current behaviour is correct. As the OP said, it's expected.

Re^2: Undocumented join() feature, now defunct? (bug)
by johngg (Canon) on Oct 30, 2014 at 10:22 UTC

    Thank you. I found this informative and helpful.

    Cheers,

    JohnGG