Follow us on Twitter!
Society leans ever heavily on computers, if you have the power to take out computers you can take out society. - cubeman372
Thursday, April 17, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 15
Guests Online: 12
Members Online: 3

Registered Members: 82822
Newest Member: TheBunter
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Author

Help Wanted, New to perl


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 21-08-09 11:51
Hi all,

I'm struggling to learn Perl, Im used to C and PHP.

I started learning perl about ... 15 mins ago. I can make a number list generator, thats really simple.

How would you make a wordlist which starts at
a
b
c
...
aa
ab
ac

You get the picture.

I just want to print it to the screen. Not save it anywhere.

Is that relatively simple to do?


Author

RE: Help Wanted, New to perl

spyware
Member



Posts: 4192
Location: The Netherlands
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 21-08-09 21:03
It's not a problem with Perl, it's a logic puzzle. Learn to logic.



img507.imageshack.us/img507/3580/spynewsig3il1.png
"The chowner of property." - Zeph
[small]
Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term.
- Carl Sagan
“Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?” - Ebert
[/s
http://bitsofspy.net
Author

RE: Help Wanted, New to perl


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 22-08-09 00:06
One approach to do this:
1- n digits means n nested loops.
2- array of letters.
3- modulus to make things go "circular"


Author

RE: Help Wanted, New to perl


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 22-08-09 12:32
I think this is the easiest way to do it:
Code
$string = 'a';

while() {
   print $string, "\n";
   $string++;
}
exit;




btw, I don't think this will work in any other language.

Edited by on 22-08-09 12:34
Author

RE: Help Wanted, New to perl


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 22-08-09 21:40
Sweni wrote:
I think this is the easiest way to do it:
Code
$string = 'a';

while() {
   print $string, "\n";
   $string++;
}
exit;




btw, I don't think this will work in any other language.


This won't rotate dude.


Author

RE: Help Wanted, New to perl


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 22-08-09 21:54
I don't know what you mean by rotate x)
But after it comes to 'z' it will do 'aa' instead of '{' if that's what you mean Pfft
Author

RE: Help Wanted, New to perl


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 22-08-09 22:00
And what if I'm trying to do a brute-force and I want to omit some letters?! Wink
(Don't tell me that you'll use if condition then continue).




Edited by on 22-08-09 22:01
Author

RE: Help Wanted, New to perl


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 22-08-09 22:07
454447415244 wrote:
And what if I'm trying to do a brute-force and I want to omit some letters?! Wink
(Don't tell me that you'll use if condition then continue).

Yeah then we'll have a problem Pfft But he did just ask how to "print it on the screen" Wink
Author

RE: Help Wanted, New to perl


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 22-08-09 22:09
Yeah. True. But I wonder why he just want them printed on the screen. :right: