in reply to filename of an attachment

This is syntax error
print $field->'Content-Disposition'->filename;

Replies are listed 'Best First'.
Re^2: filename of an attachment
by Anonymous Monk on Dec 08, 2008 at 13:30 UTC
    jeah I know witch part is not good in the code, but I don't know in what way I can get it work
      $blah->{blah}->filename?
        now it gives nothing when I give it an e-mail at the stdin. completely nothing. the program will run, but it looks like it freezes at 1 place.