in reply to STDOUT msg routing

error message that i got

syntax error at move.perl line 120, near "print" BEGIN not safe after errors--compilation aborted at move.perl line 170 +.

Replies are listed 'Best First'.
Re^2: STDOUT msg routing
by MidLifeXis (Monsignor) on Feb 25, 2015 at 14:25 UTC

    Does the previous line statement end in a semicolon?

    .oO( is it a vegetable? ) .oO( is it a movie? )</20_questions>

    --MidLifeXis

Re^2: STDOUT msg routing
by Stringer (Acolyte) on Feb 25, 2015 at 13:58 UTC
    Can you provide some more code surrounding line 170? The following works for me:
    #!/usr/bin/perl use strict; use warnings; open STDOUT, ">", "files.out"; print "test\n";