Follow us on Twitter!
Don't judge the unknown - Grindordie
Friday, April 18, 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: 29
Guests Online: 24
Members Online: 5

Registered Members: 82829
Newest Member: mmoclauq
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Author

Perl


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 30-10-06 00:01
I'm learning Perl from a Tutorial and it was teaching here-documents, and gave an example. So i copied it, here is the code:
Code
#!/usr/bin/perl
#heredoc.pl
use warnings;
print<<EOF;

This is an example of a here-document.

EOF


and then tried to execute in in command prompt but an error comes up and says: Can't find string terminator "EOF" anywhere before EOF at C:\Perl\Basic Programs\heredoc.pl line 4.

My code is the same as in the tut, but why do i get an error?
end3r


Author

RE: Perl


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 31-10-06 01:51
www.google.com - answer to everything in the world..


Author

RE: Perl


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 31-10-06 01:58
do you think i'm an idiot? really, im not that stupid, but im looking for help, for someone to try it or read it and tell me whats wrong with it and obviously you cant. google is where i found the tut.
end3r


Author

RE: Perl

bl4ckc4t
Member

Your avatar

Posts: 591
Location: /etc/
Joined: 07.03.06
Rank:
Wiseman
Posted on 31-10-06 01:58
end3r wrote:
I'm learning Perl from a Tutorial and it was teaching here-documents, and gave an example. So i copied it, here is the code:
Code
#!/usr/bin/perl
#heredoc.pl
use warnings;
print<<EOF;

This is an example of a here-document.

EOF


and then tried to execute in in command prompt but an error comes up and says: Can't find string terminator "EOF" anywhere before EOF at C:\Perl\Basic Programs\heredoc.pl line 4.

My code is the same as in the tut, but why do i get an error?
end3r


change print<<EOF; to print("EOF");

get rid of "this is an example of a here-document

EOF"


Author

RE: Perl


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 31-10-06 03:30
bl4ckc4t: Why do you insist on posting utterly useless shit? Pfft

end3r: Want to know what your problem is? Well.. it is a secret, but I guess I'll share it.. simply hit enter at the end of your script so there is a newline after EOF :happy:
Author

RE: Perl

bl4ckc4t
Member

Your avatar

Posts: 591
Location: /etc/
Joined: 07.03.06
Rank:
Wiseman
Posted on 31-10-06 03:58
T-Metal-Risen wrote:
bl4ckc4t: Why do you insist on posting utterly useless shit? Pfft

end3r: Want to know what your problem is? Well.. it is a secret, but I guess I'll share it.. simply hit enter at the end of your script so there is a newline after EOF :happy:


Utterly useless?

uh, how?

Perl is my main language.

BC


Author

RE: Perl


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 31-10-06 04:03
Ok.. well than I hate to say it, but you obviously don't know your `main` language too well Pfft. He's trying to use Heredoc and your comment made absolutely no sense and WAS utterly pointless, all that is necessary is that he include a newline at the end of his script in order for it to recognize the end label.:ninja::happy::angry:

Edited by on 31-10-06 05:18
Author

RE: Perl

bl4ckc4t
Member

Your avatar

Posts: 591
Location: /etc/
Joined: 07.03.06
Rank:
Wiseman
Posted on 31-10-06 06:04
T-Metal-Risen wrote:
Ok.. well than I hate to say it, but you obviously don't know your `main` language too well Pfft. He's trying to use Heredoc and your comment made absolutely no sense and WAS utterly pointless, all that is necessary is that he include a newline at the end of his script in order for it to recognize the end label.:ninja::happy::angry:


Ah hah! Thanks for correcting me!

Bl4ckC4t


Author

RE: Perl


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 31-10-06 13:24
thanks t-metal
end3r


Author

RE: Perl


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 31-10-06 19:54
end3r wrote:
do you think i'm an idiot? really, im not that stupid, but im looking for help, for someone to try it or read it and tell me whats wrong with it and obviously you cant. google is where i found the tut.
end3r


I suggested google because no one had helped you for a couple days, and i wanted to contribute Wink


Author

RE: Perl


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 31-10-06 22:49
Ponguile wrote:
end3r wrote:
do you think i'm an idiot? really, im not that stupid, but im looking for help, for someone to try it or read it and tell me whats wrong with it and obviously you cant. google is where i found the tut.
end3r


I suggested google because no one had helped you for a couple days, and i wanted to contribute Wink


lol i think if anything you insulted him a bit Wink comon Ponguile....everyone but the computer illiterate know google is a hackers best friend =Þ


Author

RE: Perl


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 01-11-06 22:09
Oh well if i insulted you than i am sorry...but then again, the answer probably would have been on google so..