kanewilliam7777 has asked for the wisdom of the Perl Monks concerning the following question:
my $param_value='123456789'; if(length($param_value)!=10) { print 'Fail'; } else { print 'Success'; }
Needed & correct result is "Fail". but it's return "Success".
Please let me know how to check the string length
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl length if condition not working
by Eily (Monsignor) on Sep 25, 2018 at 10:18 UTC | |
|
Re: Perl length if condition not working
by Your Mother (Archbishop) on Sep 25, 2018 at 10:18 UTC | |
|
Re: Perl length if condition not working
by hippo (Archbishop) on Sep 25, 2018 at 10:30 UTC |