On Monday, July 8, 2002, at 06:02 , Felix Geerinckx wrote:
[..]
> on Mon, 08 Jul 2002 12:52:59 GMT, [EMAIL PROTECTED]
> (Steven Massey) wrote:
[..]
>> --------------------
>> sub getD {
>> @inp=@_;
>> print @inp;
>> }
>>
>> $date="06072002";
>> getD($date);
>> --------------------
>>
>> What am I missing ?? any help greatly appreciated
>
> sub getD {
> my $inp = shift; # or shift(@_);
> print $inp;
> }
>
or how about
sub getD {
my ($input) = @_;
print $input
}
also would conform to
perldoc perlsub
ciao
drieux
---
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]