
Zhris
Enthusiast
Oct 31, 2013, 5:34 AM
Post #4 of 8
(1855 views)
|
Re: [flaq1991] print doesn't work
[In reply to]
|
Can't Post
|
|
Cover your code in debug print statements, this will make it easier to visualize its flow. Print something before the if statement to check it even reaches that far, if it does then print $response->content to check it contains what you think it does. Work your way backwards until you find the cause.
print "DEBUG: before if 1\n\n\n"; print 'DEBUG: response content: ', $response->content, "\n\n\n"; if($response->content =~ m/Witaj w panelu twojego konta,/i) { { print "DEBUG: in if 1\n\n\n"; } print "DEBUG: after if 1\n\n\n"; We cannot test your code easily to provide a definitive answer. Chris
(This post was edited by Zhris on Oct 31, 2013, 5:38 AM)
|