f'ups rearranged
> > [EMAIL PROTECTED] wadet]$ perl
> > sub box {
> > return('');
> > }
> > print < >
> >
> > ${\box(5,10)}
> > ${\box(7,10)}
> >
> >
> > eot
> > Ctrl-D
> >
> >
> >
> >
> >
> >
> >
> > see:
> >
> > [EMAIL PROTECTED] wadet]$ perldoc perlref
"Pete
On Thu, 20 Feb 2003 at 09:41, Peter Kappus opined:
[snip]
PK:Quite ingenious. While I'm sure I'll regret it later (and curse your good
PK:name as I'm wishing I'd taken the time to learn Mason or HTML::Template)
PK:this seems like a great quick fix for the time being. And it never hurts to
PK:lea
IL PROTECTED]
Subject: Re: php like behavior for my perl CGI
Well, you can save yourself a bundle of keystrokes and use a templating
system and cascading stylesheets, but heres a quick fix:
[wadet@ecg-redhat wadet]$ perl
sub box {
return('');
}
print <
${\box(5
"Peter Kappus" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]
...
> Thanks to all who have responded to my rather vague request. Indeed, I
> should clarify a bit what I'm looking for.
>
> Because I'm extremely lazy, I'd like to use certain formatting shortcuts
in
>
-Phil
-Original Message-
From: Peter Kappus [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 17, 2003 1:27 PM
To: [EMAIL PROTECTED]
Subject: RE: php like behavior for my perl CGI
Thanks to all who have responded to my rather vague request. Indeed, I
should clarify a bit what I'm l
On Mon, 17 Feb 2003 at 10:26, Peter Kappus opined:
[snip]
PK:which would create and send the image tag for me.
PK:I'd like, in perl, to do the following:
PK:
PK:print<
PK:
PK:
PK:
PK:
PK:eob
PK:
PK:Ideally, I would overload the print function so that it would search for
PK:stat
Thanks to all who have responded to my rather vague request. Indeed, I
should clarify a bit what I'm looking for.
Because I'm extremely lazy, I'd like to use certain formatting shortcuts in
my HTML. In a given document, I might have 15 different spacer gifs of
different sizes to aid in precise f
On Friday, Feb 14, 2003, at 19:02 US/Pacific, Peter Kappus wrote:
[..]
In PHP this can be streamlined by creating a function which prints out
your
image tag for your and accepts the height and width as parameters.
like so:
function spacer($y,$x){
?>
}
[..]
i'd like to be able to use the "pr
Thanks to Rob for his Class::DBI suggestion earlier. Looks like what I
needed was simply:
my %hash;
return $sth->fetchall_arrayref(\%hash);
to return an array of hashes...
As I'm continuing with my latest project, I'm finding myself wishing I could
do some PHP type things...spec