in reply to Re: Unparseability is A Good Thing
in thread Unparseability is A Good Thing
Yet another proof:
BEGIN { my ($add_ts) = @ARGV; eval 'use subs qw( die )' if $add_ts; } sub die { my $ts = '[' . localtime() . '] '; my $msg = join '', @_; $msg =~ s/^/$ts/mg; CORE::die($msg); } die("foo\n");
>perl test.pl 1 [Sun Aug 23 11:52:55 2009] foo >perl test.pl 0 foo
Execution is required to decide whether die is a subroutine call or an operator.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Unparseability is A Good Thing
by Zen (Deacon) on Aug 26, 2009 at 19:51 UTC | |
by blokhead (Monsignor) on Aug 28, 2009 at 14:01 UTC | |
by ikegami (Patriarch) on Aug 27, 2009 at 21:45 UTC | |
by Zen (Deacon) on Aug 28, 2009 at 13:31 UTC | |
by ikegami (Patriarch) on Aug 28, 2009 at 15:38 UTC | |
by ikegami (Patriarch) on Aug 28, 2009 at 14:53 UTC | |
by Zen (Deacon) on Aug 28, 2009 at 15:46 UTC | |
| |
by ikegami (Patriarch) on Aug 26, 2009 at 22:18 UTC | |
by Zen (Deacon) on Aug 27, 2009 at 13:55 UTC | |
by ikegami (Patriarch) on Aug 27, 2009 at 14:12 UTC | |
by Zen (Deacon) on Aug 27, 2009 at 15:31 UTC | |
|
In Section
Meditations