on Mon, 08 Jul 2002 12:52:59 GMT, [EMAIL PROTECTED] (Steven Massey) wrote:
> I am missing something in using functions(methinks) > > I simple want pass a scalar variable of 02072002, I can get it to > work by treating it as an array - but this seems daft.. > -------------------- > 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; } See perldoc perlsub to learn how subroutine parameters work. -- felix -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]