User Profile

Collapse

Profile Sidebar

Collapse
jlhsgcib
jlhsgcib
Last Activity: Aug 5 '08, 09:55 AM
Joined: Jul 31 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • I've tried on PerlMonks, and got a reply. Basically, in a
    Code:
    if {} elsif {} else {}
    construct, if the warning occurs in the "elsif" condition, the warning will be displayed on the "if" line because it's the same statement.

    http://www.perlmonks.com/index.pl?node_id=702113

    Thanks.
    -- Jeremie...
    See more | Go to post

    Leave a comment:


  • Dear Kevin,

    Thank you for your reply.



    Yes indeed, it works most of the time. This piece of code is run for a large number of login/password couples but the error only happens for less than 10 cases among more than 20000. And as I said, the guilty passwords don't differ especially from the others.

    I've even tried to dump passwords as hexadecimal to see whether there wouldn't be non-printable...
    See more | Go to post

    Leave a comment:


  • jlhsgcib
    started a topic Puzzling bug in a very simple piece of code
    in Perl

    Puzzling bug in a very simple piece of code

    Hello,

    I have the following snippet of code:
    Code:
     sub getPasswordStatus {
    
    	my ($login, $password) = @_;
            my$quotedLogin = quotemeta($login);
    
    	my $Passwd;
    	if( $password && $password !~ /\?{7,7}/ ) {
    
    		if ($password =~ m/^NO PASSWORD$/i){ # No password
    
    			$Passwd = 'empty';
    
    		} elsif ($password =~ /^PASSWORD$/i){
    ...
    See more | Go to post
    Last edited by numberwhun; Jul 31 '08, 05:16 PM. Reason: Please use code tags
No activity results to display
Show More
Working...