in reply to Re: Re: Why is part of slice duplicated?
in thread Why is part of slice duplicated?
And call it like:sub add { my ($hashref, $to, $subject, $file_name, $from, $last_dir) = @_; $hashref -> {$to} ||= { }; $hashref -> {$to} {$subject} ||= [ ]; push @{$hashref -> {$to} {$subject}} => {$file_name => {path => $last_dir, from => $from}}; }
add $spam, 'foo@bar.com', 'New CDs now', 'AAAAA.txt', 'that@person.com +', 'Spam';
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Why is part of slice duplicated?
by the_0ne (Pilgrim) on May 28, 2002 at 18:59 UTC |