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":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.