Make unlink with implicit $_ work once more
authorFather Chrysostomos <sprout@cpan.org>
Mon, 22 Aug 2011 02:58:43 +0000 (19:58 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 22 Aug 2011 02:58:43 +0000 (19:58 -0700)
commit72ec8a821beca962b4748ef16cf7f1ce74119c43
treec1bc23d97a66c45fd455f3b87d1cefdd696f2b95
parentc1ff15b2b4d6172bd224dcc6f444d5f0875cd758
Make unlink with implicit $_ work once more

I broke this with commit ea5703f4.  unlink is the only op that has the
OA_DEFGV flag and no scalar or file arguments.

Commit ea5703f4 changed the OA_DEFGV logic in ck_fun to generate a
new $_ op for the first optional parameter, instead of just the first
parameter, to avoid special-casing unpack.  But lists are not marked
with OA_OPTIONAL.  So this commit changes it to check for list parame-
ters as well.
op.c