spickles has asked for the wisdom of the Perl Monks concerning the following question:
if ($to_file == 0) { print "blah\n"; } else { print MYFILE "blah\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Redirect Subroutine Output
by goeb (Pilgrim) on Aug 26, 2009 at 15:54 UTC | |
by spickles (Scribe) on Aug 26, 2009 at 18:08 UTC | |
by toolic (Bishop) on Aug 26, 2009 at 18:28 UTC | |
|
Re: Redirect Subroutine Output
by ambrus (Abbot) on Aug 26, 2009 at 16:11 UTC | |
|
Re: Redirect Subroutine Output
by ikegami (Patriarch) on Aug 26, 2009 at 17:06 UTC | |
by spickles (Scribe) on Aug 26, 2009 at 17:30 UTC | |
by ikegami (Patriarch) on Aug 26, 2009 at 17:37 UTC | |
by spickles (Scribe) on Aug 26, 2009 at 18:23 UTC | |
by ikegami (Patriarch) on Aug 26, 2009 at 18:43 UTC |