On Jun 2, 2011 1:40 AM, "Shlomi Fish" wrote:
>
> On Thursday 02 Jun 2011 01:23:23 rodeored wrote:
> > This code produces the following 3 lines:
> > foreach $twords(@topTypes)
> >{
> > $output.="".commify_series(@$twords)."";
> >}
> >
>
> I should note that there's a risk of HTML-injec
On Thursday 02 Jun 2011 01:23:23 rodeored wrote:
> This code produces the following 3 lines:
> foreach $twords(@topTypes)
>{
> $output.="".commify_series(@$twords)."";
>}
>
I should note that there's a risk of HTML-injection / Cross-site-scripting
(XSS) attack here:
http://en.wikip
On Jun 1, 2011 8:16 PM, "rodeored" wrote:
>
> This code produces the following 3 lines:
> foreach $twords(@topTypes)
> {
> $output.="".commify_series(@$twords)."";
> }
>
> Type 7 and Type 8
>
> Type 9, Type 5, and Type 4
>
> Type 2
>
> I only want the first line. But when I try:
You're re
On Wed, Jun 1, 2011 at 18:23, rodeored wrote:
> If I try adding the @: $output.="".commify_series(@$topTypes[0])." p>";
> There's no output.
>
> How do I just get the first line?
What you have there is an array of array references. (Aside: this
would be a great place to use Data::Dumper, to cue
Hi Steve,
> Understanding references is imho one of the most important aspects of
> being able to use Perl effectively, and minimize headache.
>
(stuffing my head into the Llama book)
> That's because iirc TT accepts a hashref as the data, and you must stuff
> your arrayrefs within it.
>
> Here i
On 2010.08.11 00:15, MySelf rdtan.net wrote:
> On 10/08/10 4:49, Dermot wrote:
>> I think you might be getting a bit confused here. TT requires
>> references for it's parameters variable, so yes array, hash references
>> (or any reference that returns a list) but that is different from how
>> you
Hi Dermot,
On 10/08/10 4:49, Dermot wrote:
snip
> Hi,
>
> Not sure why you had to send this twice.
Oops, sorry about it, to everybody. The first email (my time shows 8pm
++) was sent but it didn't turn up in my email client (on this mailing
list, beginners@perl.org) and my hosting's webmail interf
On 9 August 2010 13:25, me @ wrote:
> Hi,
Hi,
Not sure why you had to send this twice.
I'm trying to pickup CGI web application programming using Perl, DBI &
...
...
start of list.tt <<<
> Content-type: text/html
>
>
> [% PROCESS header %]
> Form List
>
>
> [% FOREACH kar IN kars.val