Can you tell me:
- How does this get parsed? (e.g. try adding parentheses to show precedence)
- Given that the body of each of the four subs is { print Dumper(\@_) }, what is the output?
$_ = "#x"; my @a = qw/b c/; foo /#(\w+)/, @a; bar /#(\w+)/, @a; quz /#(\w+)/, @a; baz /#(\w+)/, @a;
Hint:
Solution:
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Fun with Prototypes
by LanX (Saint) on Jul 19, 2017 at 21:37 UTC | |
by haukex (Archbishop) on Jul 23, 2017 at 20:35 UTC | |
Re: Fun with Prototypes
by LanX (Saint) on Jul 19, 2017 at 21:45 UTC | |
by tobyink (Canon) on Jul 22, 2017 at 11:22 UTC | |
by LanX (Saint) on Jul 22, 2017 at 22:28 UTC | |
by LanX (Saint) on Jul 20, 2017 at 12:49 UTC | |
Re: Fun with Prototypes
by Laurent_R (Canon) on Jul 19, 2017 at 14:16 UTC |
Back to
Meditations