Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
GLOB is a type of Perl variable (also known as a typeglob) that is a reference to a value in Perl's symbol table. If you want to know more about them you might want to read The Perl You Need To Know - Part 3.

GLOB variables can't be serialised by Storable because it is a pointer to a table that is part of the current Perl runtime. If it was saved and restored, the symbol table in memory would not be the same one and it would not be able to point to the same entry. (Did that even make sense?! I hope so, it's a little tricky to explain).

The question here, though, is why CGI's param method is returning a typeglob. Possibly the method performs differently in a string context?

I notice that the form variable you are referencing is called pic1 - is the form a multipart file upload form? If so it makes more sense since CGI is probably giving you a filehandle to an open file that you will then have to do something with (like reading it into memory, copying it to a file etc.).


In reply to Re: CGI and Storable : explain me this, please. by aufflick
in thread CGI and Storable : explain me this, please. by lepetitalbert

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found