$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
In reply to Re: Why is part of slice duplicated?
by Abigail-II
in thread Why is part of slice duplicated?
by the_0ne
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |