in reply to Re^2: Problem with Perl editors.
in thread Problem with Perl editors.

Are you sure?

perl -e "$| = -1; print $|"

$| is magical in that it can only have the values 1 and 0. $|++ switches unbuffering on, while $|-- toggles from on to off and back to on.

Replies are listed 'Best First'.
Re^4: Problem with Perl editors.
by radiantmatrix (Parson) on Jul 05, 2005 at 16:40 UTC

    Hm, this works on my current Perl installation, but I remember running into the problem as I explained it. Odd; I wonder if it was an old Perl, or something custom on that system...

    Larry Wall is Yoda: there is no try{}
    The Code that can be seen is not the true Code
Re^4: Problem with Perl editors.
by GrandFather (Saint) on Jul 05, 2005 at 20:40 UTC

    I echo radiantmatrix's comment: better to explicitly say what you mean.

    Where alternate 1 does the job, but offers no significant performance advantage, is not significantly shorter and is obscure (to any degree), then alternate 2 which is explicit is always better (unless of course you are writing deliberatly obscure code).


    Perl is Huffman encoded by design.