473,804 Members | 3,460 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

pearl expert..anyone?

I have following not working it report that I have
Can't find string terminator "STR" anywhere before EOF at init.pl line 50.
Compilation failed in require at /s101/home4/sgiwedding/cgi/form.pl line 9.

I can not find how to fix this as I really don't know anything about pearl
and need to get this form working .
Terminator STR is there so why it is complaining?

Can you please help?

Thanks

------------------
sub estab {
############### #####
### ?????? ###
############### #####
# (1)sendmail???? ???????????

$SENDMAIL = '/usr/sbin/sendmail';
# (2)???????????( 1.??/0.????)

$CONFIRM_FLAG = 0;
# (3)???????????? ?????(URL????)? ??????

# $CONFIRM_TMPL = 'check_mail.htm l';
# (4)???????????? ????????

$REQUIRED =
qq(church!!!nam e1!!!name2!!!na me3!!!name4!!!n ame5!!!name6!!! name7!!!
name8!!!_email! !!tel!!!);
# (5)???????/??????????????? ??
# ?????????????,? ??????????????

$SENDTO = 'i***@sgiweddin g.com';
$SENDFROM = 'i***@sgiweddin g.com';
# (6)???????????? ???????(??)???? ??????

$SUBJECT = '????????????';
# (7)??????????HT ML?URL

$THANKS = 'http://www.sgiwedding. com/send.html';
# (8)??????????

chomp($FORMAT = <<'STR');
*************** *************** ****
????????????
*************** *************** ****

##name1##? ??????????????? ???????????
??????????????? ???
??????????????? ?????????

---- ???? ----

?????? : ##church##
????? : 200##h_year## ? ##h_month## ? ##h_day## ? ##jikan##

???? : ##name1## ##name2##
: ##name3## ##name4##
???? : 19##m_year## ? ##m_month## ? ##m_day## ?

???? : ##name5## ##name6##
: ##name7## ##name8##
???? : 19##f_year## ? ##f_month## ? ##f_day## ?

??? : ##whoinfo##
????? : ##zip1## - ##zip2##
? ? : ##address##
???? : ##tel##
???? : ##tes2##
E-mail : ##_email##

?????????? :
##question##
? sunshine-wedding.com ??????????
mailto: in**@sgiwedding .com
STR} 1;
---------------------------------------
Jul 17 '05
16 2169

First of all I appologise. and Thank you.

Second , are you the same person who advised following ?
"STR" is NOT there.
"STR} 1;" is there, but that's not the same.

What is that "} 1;" supposed to do?

Either remove it or do a chomp($FORMAT = <<'STR} 1;'); above.
--
Marco Dieckhoff
icq# 22243433
GPG Key 0x1A6C95BA -- http://www.frankonia-brunonia.de/keys
If so yes I did that and still not working . Perl still complaining about
following. I have included the code. Ignore foreign Lang stuff.
If you are not the same person then I am sorry again and cannot find the
post. Could you please let me have it again. I really need this to work and
do appreciate your help.

Faruk
=============== =============== =============== =============== ==
here is the error returned when checking syntax on init.pl

perl -c /s101/home4/sgiwedding/cgi/init.pl

Can't find string terminator "STR" anywhere before EOF at
/s101/home4/sgiwedding/cgi/init.pl line 50.

=============== =============== =============== =============== ========
Code in the init.pl =============== =============== =============== =

CODE >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>

sub estab {

############### #####

### ???? ###

############### #####

# (1)sendmailtpX? w??????B

$SENDMAIL = '/usr/sbin/sendmail';

# (2)mF?o?????(1c o?/0co???)

$CONFIRM_FLAG = 0;

# (3)mFy[W?AT[o?pX(URL????)?L q???B

# $CONFIRM_TMPL = 'check_mail.htm l';

# (4)?K{???tB[h?w???B

$REQUIRED =

qq(church!!!nam e1!!!name2!!!na me3!!!name4!!!n ame5!!!name6!!! name7!!!

name8!!!_email! !!tel!!!);

# (5)tH[?M/M?AhXw??????B

# MAhX?AJ}u,v???? ?w?\??B

$SENDTO = 'i***@sgiweddin g.com';

$SENDFROM = 'i***@sgiweddin g.com';

# (6)tH[?et?[?^Cg(?)w??????B

$SUBJECT = '?\??E???';

# (7)M??bZ[WpHTML?URL

$THANKS = 'http://www.sgiwedding. com/send.html';

# (8)[?tH[}bg

chomp($FORMAT = <<'STR');

*************** *************** ****

?\??E???

*************** *************** ****

##name1##l ??x?TCg???????? ??????B

??S??A?????B

????A??[?????????B

---- Me ----

?]?? F ##church##

?] F 200##h_year## N ##h_month## ##h_day## ##jikan##

VY?@ F ##name1## ##name2##

F ##name3## ##name4##

?N F 19##m_year## N ##m_month## ##m_day##

Vw?@ F ##name5## ##name6##

F ##name7## ##name8##

?N F 19##f_year## N ##f_month## ##f_day##

A F ##whoinfo##

X??@ F ##zip1## - ##zip2##

Z F ##address##

db? F ##tel##

g?db F ##tes2##

E-mail F ##_email##

???E?? F

##question##

? sunshine-wedding.com ??????????

mailto: in**@sgiwedding .com

STR} ;

=============== =============== =============== ========

<<<<<<<<<<<<<<< <<<<<<<<<<<<<<< <<<<<<<<<<<

"Garp" <ga***@no7.blue yonder.co.uk> wrote in message
news:IQ******** *************@n ews-text.cableinet. net...
[top-post fixed]

"M.E." <so*******@down under.com.au> wrote in message
news:cb******** ***@otis.netspa ce.net.au...
"Andy Hassall" <an**@andyh.co. uk> wrote in message
news:dg******** *************** *********@4ax.c om...
On Mon, 28 Jun 2004 14:52:41 +1000, "M.E."
<so*******@down under.com.au> wrote:

>I really don't know anything about pearl

"A pearl is a hard, rounded object produced by certain mollusks,

primarily
oysters, and which is cultivated or harvested for jewelry."

http://en.wikipedia.org/wiki/Pearl

Pearls are not typically useful for programming, although I suppose
you could
put them on rails and form an abacus or some sort of
finite-tape-length Turing
machine.

--
Andy Hassall <an**@andyh.co. uk> / Space: disk usage analysis tool
http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space

OK you buggers, Come on down. Lets have it . I can take it.

Now I feel like I should have Pearls rather then Perl

but how about my problem huh?


I already fixed it. Either tell me why my fix doesn't work, or say "thank
you".

Garp

Jul 17 '05 #11
On Mon, 28 Jun 2004 07:08:52 +0000, Garp wrote:
The line with the STR on it is a heredoc terminator, but it also had the
function's terminating brace on. Change "STR } 1;"
to
"STR
} 1;"
and put the chomp statement back to how it was. I don't think the "1;" is
necessary.


In order for "use" to succeed, the last value of the included module must
be true, so most modules end with a line with 1; .

STR
}
1;

HTH,
La'ie Techie

Jul 17 '05 #12

"La?ie Techie" <laie@win_remov e_get_nospam_so lutions.com> wrote in message
news:2f******** *************** *******@news.te ranews.com...
On Mon, 28 Jun 2004 07:08:52 +0000, Garp wrote:
The line with the STR on it is a heredoc terminator, but it also had the
function's terminating brace on. Change "STR } 1;"
to
"STR
} 1;"
and put the chomp statement back to how it was. I don't think the "1;" is necessary.


In order for "use" to succeed, the last value of the included module must
be true, so most modules end with a line with 1; .

STR
}
1;

HTH,
La'ie Techie


Thanks for that! A hole in my Perl (which I don't use half as often as I
used to now I have PHP and Python to fall back on).

Garp
Jul 17 '05 #13
[top-post fixed twice]

"M.E." <so*******@down under.com.au> wrote in message
news:cb******** ***@otis.netspa ce.net.au...
"Garp" <ga***@no7.blue yonder.co.uk> wrote in message
news:IQ******** *************@n ews-text.cableinet. net...
[top-post fixed]

"M.E." <so*******@down under.com.au> wrote in message
news:cb******** ***@otis.netspa ce.net.au...
"Andy Hassall" <an**@andyh.co. uk> wrote in message
news:dg******** *************** *********@4ax.c om...
> On Mon, 28 Jun 2004 14:52:41 +1000, "M.E." <so*******@down under.com.au> wrote:
>
> >I really don't know anything about pearl
>
> "A pearl is a hard, rounded object produced by certain mollusks,
primarily
> oysters, and which is cultivated or harvested for jewelry."
>
> http://en.wikipedia.org/wiki/Pearl
>
> Pearls are not typically useful for programming, although I suppose you could
> put them on rails and form an abacus or some sort of finite-tape-length Turing
> machine.
>
> --
> Andy Hassall <an**@andyh.co. uk> / Space: disk usage analysis tool
> http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space OK you buggers, Come on down. Lets have it . I can take it.

Now I feel like I should have Pearls rather then Perl

but how about my problem huh?


I already fixed it. Either tell me why my fix doesn't work, or say "thank you".

Garp


First of all I appologise. and Thank you.

Second , are you the same person who advised following ?
"STR" is NOT there.
"STR} 1;" is there, but that's not the same.

What is that "} 1;" supposed to do?

Either remove it or do a chomp($FORMAT = <<'STR} 1;'); above.

<snip>

No, that was Marco. See other half of thread for the '1' stuff. Just move
the } and the rest after that to the next line to conform with heredoc.

Garp
Jul 17 '05 #14
OK I will then.
You think I could find one . No.
So If you really want to help please advise this Perl group.

Thanks

"Chris Hope" <bl*******@elec trictoolbox.com > wrote in message
news:10******** *******@216.128 .74.129...
M.E. wrote:
but how about my problem huh?
If you want an answer go to a Perl group... this is a PHP group. And

despite that you did still get two people try to help you.

--
Chris Hope - The Electric Toolbox - http://www.electrictoolbox.com/

Jul 17 '05 #15
Did all that and it is still asking for the following. What is wrong with
the thing.
---------------------------------------
?????????r????? ???????>??/font>
a.. ??????????????? ????????????@?? ?????: Can't find string
terminator "STR" anywhere before EOF at init.pl line 50. Compilation failed
in require at /s101/home4/sgiwedding/cgi/form.pl line 9.
----------------------------------------------------------------------------
--------

this is how the last a few lines ends
etc etc,
##question##
? sunshine-wedding.com ??????????
mailto: in**@sgiwedding .com

STR
}
1;
---------------------------------------------------------------------

"Garp" <ga***@no7.blue yonder.co.uk> wrote in message
news:6w******** *************@n ews-text.cableinet. net...
[top-post fixed twice]

"M.E." <so*******@down under.com.au> wrote in message
news:cb******** ***@otis.netspa ce.net.au...
"Garp" <ga***@no7.blue yonder.co.uk> wrote in message
news:IQ******** *************@n ews-text.cableinet. net...
[top-post fixed]

"M.E." <so*******@down under.com.au> wrote in message
news:cb******** ***@otis.netspa ce.net.au...
> "Andy Hassall" <an**@andyh.co. uk> wrote in message
> news:dg******** *************** *********@4ax.c om...
> > On Mon, 28 Jun 2004 14:52:41 +1000, "M.E."

<so*******@down under.com.au>
> wrote:
> >
> > >I really don't know anything about pearl
> >
> > "A pearl is a hard, rounded object produced by certain mollusks,
> primarily
> > oysters, and which is cultivated or harvested for jewelry."
> >
> > http://en.wikipedia.org/wiki/Pearl
> >
> > Pearls are not typically useful for programming, although I
suppose
you
> could
> > put them on rails and form an abacus or some sort of

finite-tape-length
> Turing
> > machine.
> >
> > --
> > Andy Hassall <an**@andyh.co. uk> / Space: disk usage analysis tool
> > http://www.andyh.co.uk /

http://www.andyhsoftware.co.uk/space > OK you buggers, Come on down. Lets have it . I can take it.
>
> Now I feel like I should have Pearls rather then Perl
>
> but how about my problem huh?

I already fixed it. Either tell me why my fix doesn't work, or say "thank you".

Garp


First of all I appologise. and Thank you.

Second , are you the same person who advised following ?
"STR" is NOT there.
"STR} 1;" is there, but that's not the same.

What is that "} 1;" supposed to do?

Either remove it or do a chomp($FORMAT = <<'STR} 1;'); above.

<snip>

No, that was Marco. See other half of thread for the '1' stuff. Just move
the } and the rest after that to the next line to conform with heredoc.

Garp

Jul 17 '05 #16
OK I found them Thanks
"Chris Hope" <bl*******@elec trictoolbox.com > wrote in message
news:10******** *******@216.128 .74.129...
M.E. wrote:
but how about my problem huh?
If you want an answer go to a Perl group... this is a PHP group. And

despite that you did still get two people try to help you.

--
Chris Hope - The Electric Toolbox - http://www.electrictoolbox.com/

Jul 17 '05 #17

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
1505
by: Don Vaillancourt | last post by:
I do a lot of hiring for my company and a lot of the people I interview say that they are experts at SQL queries, but when I give them something simple just beyond the typical SELECT type of queries, they choke. For example I have a table that looks like this: PK_ID - primary key PARENT_ID - a FK to another row in the same table This essentially is a tree structure. I will ask interviewees to write
4
1739
by: Tony Houghton | last post by:
Can anyone recommend a good book for intermediate up to expert level? I'm an experienced C programmer and I learnt Python from the "Learning Python" O'Reilly book because it had good reviews. I was disappointed though. It was difficult to read because it was so verbose. It would sometimes take more than a page to explain something where all the information I needed could have been conveyed in one sentence. If anyone's seen Leendert...
2
1847
by: Don | last post by:
Does anyone know of any web resources pertaining to designing/programming expert systems in VB or VB.Net? Any (Good <g>) suggestions appreciated, Don in Redmond
4
2161
by: jesper_lofgren | last post by:
Hi there, I have some webcontrols that i want to add dynamically on a page. I have stored the path / namespace in database (ex MyNameSpace.WebControls.Control1) to the class/webcontrol. Lets say i have a column in database that looks like this. PageID (int) Webcontrol (varchar) 1 MyNameSpace.WebControls.Control1
1
989
theblackmist
by: theblackmist | last post by:
Hello. I am sorry if this is not the place for this topic. I am currently trying to assemble a team of programmers that know dhtml, pearl, and a server side script (maybe php). I know very little programming myself but plan to start learning programming this fall when I start taking classes at a University. I have found one person but he doesn't have much time to spend on programming (and its not fair to put the job on any single person).
11
1946
by: Neo Morpheous | last post by:
Ok, first lets start with some definitions: By "Expert", I mean someone who : 1). Is familiar with and understands the *MAJOR* concepts/philosopies underlying C# (and possible .Net as a whole - over and above CLI, CTS etc) 2). Knows which libraries to use for common and maybe not so common tasks 3). Can convincingly pass a C# technical interview (without having
6
1817
by: rich murphy | last post by:
Could anyone point me to a good site for pearl compiler download.
5
1411
by: kushagra tiwari | last post by:
Hi Friends I need to make a project in PEARL for my semester course. Kindly tell me any good PEARL topic to make a project on . I am a student of New York University. Kindly help. Thanks Regards
0
9705
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9576
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10323
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10310
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9138
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7613
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5515
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3809
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2983
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.