
If you want a truly random password, each symbol should be chosen uniformly from the set of legal symbols. The comment prevents that erroneous highlighting from running on to subsequent lines. It see's the single quote embedded in the construct and starts highlighting the following text as a string constant, but doesn't stop until it sees a second single quote. That's simply a crutch for my editor's less capable syntax highlighting parser.
PWGEN REVIEW GENERATOR
Re^3: Please Review First Program: Random Password Generator Why does that not cause a syntax error? (I did test that and it does indeed work fine.just curious as to why/how) And what does that #' comment at the line end mean to you? in your split function you use q with symbols in there. I guarantee I will be refering back to this. Your use of split, printf, join, shuffle, and ternary are superb. I like a lot of the things you have done here. I do realize that I could have created the same functionality without the subroutines, blocks, and whatnot, but I know those are vital for future more complex scripts. However, as this is my first script, I wanted to make it a bit more complicated than it needed to be. It has much to do with my inexperience and much to do with my lack of creativity. You are correct, I never thought of doing it that way. Hey thanks for taking the time to whip up that quick rendition of my script. Re^2: Please Review First Program: Random Password Generator In the absence of evidence, opinion is indistinguishable from prejudice. Print "Password: " if not $cli_options =~ /^\d+$/ Specifies the length of the generated password. Prevents "Password: " from being sent to STDOUT. Prevents the following symbols from being used during the password gen +eration: Prevents numbers, 0 through 9, from being used during the password gen +eration. Prevent letters, both uppercase and lowercase, from being used during +the Options are provided, letters, numbers, and symbols will be used to cr +eate No password length is given, a default length of 14 will be generated. Passgen - generate random alphanumeric passwordī generates a random password of the specified I andĪccording to the rules specified by the command line options. # History : 0 (hakkum) added options and created documen +tation
PWGEN REVIEW CODE
Please let me know what you think about both code style and usability. Also, passing -h will show a short usage summary, showing a few other options. Passing the -L -N -S options will suppress letters, numbers, and/or symbols accordingly. Running the program alone will generate a 14-character password consisting of letters, numbers, and symbols. Of course there's plenty of these floating around, but I needed one and it seemed to be a good starting point.

Perl has been quite fun to learn.the reason I've actually stuck with it.Īnyways, below is ''.

I have dabbled a bit in PHP, Python, C++, and a few others, but only enough to comprehend the very basic of concepts. I am actually new to programming in general. I posted it to Arch Linux's forum before discovering this Perl Monastery. I am looking for a review/critique of the script. This is my first post to PerkMonks as well. I am new to both Perl and PerlMonks and have created my first script/program.
