[SOLVED] How Can I fix this Perl code I found online?
by dave555 from LinuxQuestions.org on (#566SX)
I found this code online about using perl. I believe it will generate unlimited patterns of letters and numbers.
Here is the code"
Code:perl -le '@c = ("A".."Z","a".."z",0..9);
for $a (@c){for $b(@c){for $c(@c){for $d(@c){for $e(@c){
print "$a$b$c$d$e"}}}}}'When I execute it, I get this error.
perl perltest
syntax error at perltest line 5, near "-le"
Execution of perltest aborted due to compilation errors.
perltest is the file.
I don't know anything about perl. So, I'm not sure what the error is near le.
I appreciate any help. Thanks


Here is the code"
Code:perl -le '@c = ("A".."Z","a".."z",0..9);
for $a (@c){for $b(@c){for $c(@c){for $d(@c){for $e(@c){
print "$a$b$c$d$e"}}}}}'When I execute it, I get this error.
perl perltest
syntax error at perltest line 5, near "-le"
Execution of perltest aborted due to compilation errors.
perltest is the file.
I don't know anything about perl. So, I'm not sure what the error is near le.
I appreciate any help. Thanks