On Jul 28, Pablo Fischer said:

>sub load_file {
>    my $this = shift;
>    $this->{FILE_ZIP} = $_[0];
>}
>
>But, If its the second file I would like to delete the last FILE_ZIP, so,
>whats better before loading the filename in FILE_ZIP:

There's no need to remove the first FILE_ZIP.

>$this->{FILE_ZIP} = undef;

That keeps the FILE_ZIP key in the hash, but makes its value undef.

>delete $this->{FILE_ZIP}

That removes the FILE_ZIP key from the hash.

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.
[  I'm looking for programming work.  If you like my work, let me know.  ]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to