perl print form without linefeeds

Hello:

We need the following output to appear across a single line, not two
lines.
If the first line is a functional print, how do we remove its
linefeed?

h3, ("Update your address"),
a({-href=>http://www.umdnj.edu},"click here"),

Please respond to Lee Ratzan (lratzan [at] gmail.com)

Thank you
lratzan [ Fr, 13 April 2007 19:14 ] [ ID #1687185 ]

Re: perl print form without linefeeds

lratzan [at] gmail.com schreef:
> Hello:
>
> We need the following output to appear across a single line, not two
> lines.
> If the first line is a functional print, how do we remove its
> linefeed?
>
> h3, ("Update your address"),
> a({-href=>http://www.umdnj.edu},"click here"),
>
> Please respond to Lee Ratzan (lratzan [at] gmail.com)
>
> Thank you

Never multipost.
http://www.cs.tut.fi/~jkorpela/usenet/xpost.html
http://oakroadsystems.com/genl/unice.htm

--
Affijn, Ruud

"Gewoon is een tijger."
rvtol+news [ Sa, 14 April 2007 14:27 ] [ ID #1687862 ]

Re: perl print form without linefeeds

On Apr 13, 1:14 pm, lratzan [at] gmail.com wrote:
> Hello:
>
> We need the following output to appear across a single line, not two
> lines.
> If the first line is a functional print, how do we remove its
> linefeed?
>
> h3, ("Update your address"),
> a({-href=>http://www.umdnj.edu},"click here"),

The above output appears on a single line unless you tell it
otherwise. So your question doesn't really make a lot of sense. To
illustrate:

$ perl -MCGI=:standard -e'
print h3("Update your address"), a({-href=>"http://www.umdnj.edu"},
"click here");
'
produces:

<h3>Update your address</h3><a href="http://www.umdnj.edu">click here</
a>

Now, if what you meant is that you want the browser to render the
above HTML in such a way as to put both the header and the link on the
same line, then you really don't have a Perl question. You have a
HTML/CSS question, and you'll get better help from a group that deals
with those formats.

>From what little I know of CSS, the following might work for you on
some browsers
<h3 style="display:inline">Update your address</h3>

You can generate that output by modifying your Perl code to:
print h3({-style=>"display:inline"}, "Update your address");

Hope this helps,
Paul Lalli
Paul Lalli [ So, 15 April 2007 23:35 ] [ ID #1688359 ]
Perl » alt.perl » perl print form without linefeeds

Vorheriges Thema: Login page perl/CGI
Nächstes Thema: Perl + Objects = Winning combination