[Date Prev][Date Next][Thread Prev][Thread Next]
[Search]
[Date Index]
[Thread Index]
[MacPerl-AnyPerl] Subroutine Argument Placeholder
Is there any way (or maybe I should say, How many ways are there) in
Perl to get a subroutine to recognize
a null argument?
For instance, I would like subroutine sample below to
print out
1
2
or
1
NULL
2
Instead, it prints
1
2
----------------- perl code snippet -----------
&sample(1.0,,2.0);
sub sample
{
foreach (@_)
{
print "$_ \n";
}
}
==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-anyperl-request@macperl.org