Perl-Sensitive Sunglasses | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Dear monks,
I'm humbly asking for explanation of basic perl knowledge. What puzzles me is that I'm having a code like that: which works very well. This is the beginning of a subroutine and all I want is to have in lexlist either a list of elements I gave as arguments to this routine or - if none were given - to create this list from some hash. My problem is, that me thinks the following should be possible also: unfortunatedly this doesn't work at all and I have no clue why. It seems, that @_ is always evaluated to a true value even if it is empty. Why this exceptional behaviour? I'm sure I'm missing something very very basic...
Bye In reply to @_ still mystifies me by PetaMem
|
|