tame1 has asked for the wisdom of the Perl Monks concerning the following question:
and later on: (although you shouldn't need it to answer this question)$configs{images}{attach}{file}="height=19 width=15 src='/images/attach +/file.gif' border=0"; $configs{images}{attach}{URL}="height=19 width=15 src='/images/attach/ +URL.gif' border=0"; $configs{images}{attach}{edit}="height=19 width=15 src='/images/attach +/edit.gif' border=0"; $configs{mime_map} = MY::PATH::_get_mime_map ();
I want to be able to call $configs->{image}{attach}{$mime_type} and have the html for it presented.sub _get_mime_map { my $mime_map = { '' => ["application/octet-stream","Unknown binary form +at"], # BEGIN these are non-standard 'aw' => ["application/applix","Applix Word Document"], 'as' => ["application/applix","Applix Spreadsheet"], 'ag' => ["application/applix","Applix Graphic"], # END these are non-standard 'ai' => ["application/postscript","Postscript ai File" +], 'aif' => ["audio/x-aiff","Aif File"], 'asc' => ["text/plain","ASCII Text File"] return($mime_map); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Method autovivification with variable values?
by runrig (Abbot) on Sep 28, 2001 at 20:47 UTC | |
|
Re: Method autovivification with variable values?
by Brovnik (Hermit) on Sep 28, 2001 at 21:02 UTC | |
by tame1 (Pilgrim) on Oct 03, 2001 at 20:00 UTC | |
|
Re: Method autovivification with variable values?
by miyagawa (Chaplain) on Sep 28, 2001 at 20:49 UTC | |
|
Re: Method autovivification with variable values?
by dragonchild (Archbishop) on Sep 28, 2001 at 20:39 UTC | |
by tame1 (Pilgrim) on Sep 28, 2001 at 20:44 UTC | |
by dragonchild (Archbishop) on Sep 28, 2001 at 20:47 UTC | |
by tame1 (Pilgrim) on Sep 28, 2001 at 20:51 UTC | |
by dragonchild (Archbishop) on Sep 28, 2001 at 20:56 UTC |