in reply to Print Help in Perl

On my terminal I sometimes don't see output unless it's followed by a newline.

This works for me:

$ perl -e '$fnord = 23; $blee = "The magic number is $fnord."; print " +$blee\n";' The magic number is 23.

Replies are listed 'Best First'.
Re^2: Print Help in Perl
by parv (Parson) on Sep 12, 2008 at 01:58 UTC

    zshell 4 was|is horrible, unlike bash 3 that I was using earlier, in this regard when I was confounded myself seeing no output from a perfectly good program. I had to tweak some option or add some workaround in zshell.

    Few minutes later ... a Google search (zsh print program | script newline "no output" | nothing) produced setopt no_prompt_cr.