getting error in perl :can't modify non-lvalue subroutine call

Posted by dexter on Stack Overflow See other posts from Stack Overflow or by dexter
Published on 2010-04-19T08:51:44Z Indexed on 2010/04/19 8:53 UTC
Read the original article Hit count: 334

Filed under:
|

i have index.pl and subs.pl when i run the program user inserts date of birth and then it is passed to getage() subroutine in subs.pl . subs.pl has many subroutines. getage() than implicitly calls another subroutine called validate() which validates the date entered by user.

when i run the index.pl user enters the date as: 03-04-2005

following error comes :can't modify non-lvalue subroutine call at subs.pl line 85, <> line 1

and at 85th line of subs.pl i have

list(my $val,my @value) = validate($dob);

why such error comes

any solutions

© Stack Overflow or respective owner

Related posts about perl

Related posts about error