Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Re: Method autovivification with variable values?

by tame1 (Pilgrim)
on Oct 03, 2001 at 20:00 UTC ( [id://116493]=note: print w/replies, xml ) Need Help??


in reply to Re: Method autovivification with variable values?
in thread Method autovivification with variable values?

We ended up changing $configs{images}{attach} to be a directory.
So it worked like this
package MY::PATH::Config.pm ...... more code ...... $configs{images}{attach} = "/path/to/image/dir/"; and later, in another module my $img = "$configs{images}{attach}" . "$att->{mime_type}" . ".gif"; <img src=$img>
Which works, and allows us to pass almost any image type.
We even made a ".gif" file (a copy of our unknown.gif) to
handle blank mime types.

Thanks for all the help everyone.

What does this little button do . .<Click>; "USER HAS SIGNED OFF FOR THE DAY"

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://116493]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-20 02:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found