This code should print 'Foo! at wrap.pl line 7.', but instead, outputs:#!/usr/bin/perl -w use strict; use Hook::LexWrap; sub get { return "Foo!" } wrap get, post => sub { warn $_[-1] }; get();
Anyone know why?Use of uninitialized value in warn at wrap.pl line 6. Warning: something's wrong at wrap.pl line 6.
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |