nathanvit has asked for the wisdom of the Perl Monks concerning the following question:
the code in module Gnome::Carduse CGI; use Gnome::Card; my $q = new CGI; print $q -> header("text/html"), $q -> start_html(-'title'=>"Example",), $q -> h1("Programma di gestione remota GnomeCard"); my $filecard="../GnomeCard.gcrd"; my $Card=Leggi($filecard); print "$Card->[2] is good.. \n"; print $q -> end_html();
PS: GnomeCard is the module that i wrotesub Leggi{ my @Card; my $filecard=shift; tie @Card, 'Tie::File', $filecard; ... return \@Card; }
open FILE, "<$filecard"; while(<FILE>) {print $_,"<br>";}
---
os: Linux Mandrake 9.0
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Tie::File and CGI
by shemp (Deacon) on Aug 04, 2003 at 17:36 UTC | |
Re: Tie::File and CGI
by RMGir (Prior) on Aug 04, 2003 at 17:36 UTC |