in reply to Why is part of slice duplicated?
$spam->{$to} = $to; $spam->{$to}->{$subject} = $subject; $spam->{$to}->{$subject}->{$file_name} = $file_name; $spam->{$to}->{$subject}->{$file_name}->{'path'} = $last_dir; $spam->{$to}->{$subject}->{$file_name}->{'from'} = $from;
You are doing some very fishy stuff here, which use strict; would not have allowed you to. First you set $spam->{$to} to $to, which is a string. But then, in the next line, with $spam->{$to}->{$subject}, you are treating it as a hashreference! And later on, you are doing the same trick with $subject and $file_name.
You should use Data::Dumper and display the context of $spam. You will be surprised what it contains (or rather, what it doesn't contain).
Remember, unless you know what you are doing, always use strict;.
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Why is part of slice duplicated?
by the_0ne (Pilgrim) on May 28, 2002 at 17:48 UTC | |
by Abigail-II (Bishop) on May 28, 2002 at 18:01 UTC | |
by the_0ne (Pilgrim) on May 28, 2002 at 18:13 UTC | |
by Abigail-II (Bishop) on May 28, 2002 at 18:37 UTC | |
by the_0ne (Pilgrim) on May 28, 2002 at 18:59 UTC |