Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Using Mech with HTTPS

by AnomalousMonk (Archbishop)
on Feb 05, 2009 at 19:13 UTC ( [id://741651]=note: print w/replies, xml ) Need Help??


in reply to Using Mech with HTTPS

This does not directly address your question, but I can suggest that, since the bodies of your loops seem very similar if not identical, there is a way to more concisely express the requirement to loop through all passwords from '0000' to '9999' using the sprintf built-in.
>perl -wMstrict -e "for (0 .. 2, 103 .. 105, 9997 .. 9999) { my $password = sprintf qq{%04d}, $_; print qq{$password } } " 0000 0001 0002 0103 0104 0105 9997 9998 9999
You may also, in future, wish to consider enclosing large chunks of code in <readmore> ... </readmore> tags; please see Writeup Formatting Tips for more info. (You can even update your post to do this now!)

Update:   It's also a good idea to check the return status of any file or network I/O operations and die or warn as appropriate.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://741651]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-19 07:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found