bdimych has asked for the wisdom of the Perl Monks concerning the following question:
prints two absolutely equal things:BEGIN { use overload; use Data::Dumper; overload::constant 'q' => sub { print Dumper \@_; }; } qq(echo aaa); qx(echo aaa);
?$VAR1 = [ 'echo aaa', 'echo aaa', 'qq' ]; $VAR1 = [ 'echo aaa', 'echo aaa', 'qq' ];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Is it possible to overload backticks (qx) operator
by cdarke (Prior) on Oct 21, 2008 at 16:27 UTC | |
|
Re: Is it possible to overload backticks (qx) operator
by holli (Abbot) on Oct 21, 2008 at 14:38 UTC | |
by bdimych (Monk) on Oct 21, 2008 at 14:53 UTC | |
by bdimych (Monk) on Oct 21, 2008 at 15:08 UTC | |
|
Re: Is it possible to overload backticks (qx) operator
by Anonymous Monk on Oct 21, 2008 at 21:14 UTC |