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
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."
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