Return-Path: Delivered-To: apmail-perl-embperl-archive@perl.apache.org Received: (qmail 48605 invoked by uid 500); 9 Jul 2003 13:51:24 -0000 Mailing-List: contact embperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list embperl@perl.apache.org Received: (qmail 48564 invoked from network); 9 Jul 2003 13:51:23 -0000 Received: from mail17.messagelabs.com (62.231.131.67) by daedalus.apache.org with SMTP; 9 Jul 2003 13:51:23 -0000 X-VirusChecked: Checked X-Env-Sender: andy.crichton@abibuildingdata.com X-Msg-Ref: server-37.tower-17.messagelabs.com!1057758683!36406 Received: (qmail 1446 invoked from network); 9 Jul 2003 13:51:23 -0000 Received: from mail.abi-uk.co.uk (HELO dougal.abi-uk.co.uk) (193.119.33.2) by server-37.tower-17.messagelabs.com with SMTP; 9 Jul 2003 13:51:23 -0000 Received: from [192.9.200.69] by dougal.abi-uk.co.uk (NTMail 7.02.3037/NY9270.00.b4f8075e) with ESMTP id dlveeaaa for embperl@perl.apache.org; Wed, 9 Jul 2003 14:51:23 +0100 From: "Andy Crichton" To: Subject: beginner -> problem with [+ $row $col notation with DBI selectall_arrayref Date: Wed, 9 Jul 2003 14:51:22 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, My problem is that I get no output from this. " [- use My::Module; my $dat=GetSomeStuff($req->{dbh}); #returns reference to array of arrays (result of selectall_arrayref) # If I uncomment this I see my data before the HTTP headers as I would expect. #foreach (@{$dat}) { # This proves that $dat is what I think it is and contains data # foreach (@{$_}) { # print #} -] Some Random Text
[+ $dat -> [$row][$col] +]
" For the table part I just get
it is like $dat has gone out of scope between the [- and the [+ but this is not what I expected I suspect this is a stupid mistake somewhere on my part which may be glaringly obvious to someone. Many thanks in advance Andy Circhton __________________________ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. The contents are confidential and may be privileged. Any views or opinions expressed are those of the sender and may not reflect the views or opinions of the company and the company accepts no liability in respect thereof. If you have received this email in error please notify postmaster@abibuildingdata.com immediately. ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________ --------------------------------------------------------------------- To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org For additional commands, e-mail: embperl-help@perl.apache.org