nathanvit has asked for the wisdom of the Perl Monks concerning the following question:
my @Card=Leggi($filecard); .... push(@Card,"BEGIN:VCARD"); push(@Card,"FN:$Nuovo->{'FN:'}"); push(@Card,"N:$Nuovo->{'N:'}"); push(@Card,"END:VCARD"); ... Uscita($filecard,\@Card); sub Leggi{ my @Card; tie @Card, 'Tie::File', $filecard, mode => O_RDWR; .... return @Card; } sub Uscita{ my $filecard=shift; my $Card=shift; untie @$Card; ... exit 0; }
---
os: Linux Mandrake 9.0
edited by ybiC: s/Tie:/Tie::/ for searchability
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tie:File doesn't save
by bobn (Chaplain) on Aug 02, 2003 at 19:26 UTC | |
|
Re: Tie::File doesn't save
by planetscape (Chancellor) on Jul 07, 2011 at 13:55 UTC |