Perl syntax

Discussion in 'Perl Misc' started by Anders Christensen, Apr 1, 2004.

  1. Hey,
    Could anyone help me understanding the following code-example. The
    code-example is taken out of a context, so it won't give any functionality
    as you see it - what I'd like help on is what $:: and %:: means...? Which
    scalar and hash is in question?

    The codeexample:
    #[Bla,bla,bla...]
    sub ProcessFormFields {
    my ($buffer) = (@_);
    return ParseUrlString($buffer, %::FORM, %::MFORM);
    }
    #[Bla,bla,bla...]
    if ( defined $::FORM{$fieldname} ) {
    $::FORM{$fieldname} .= $fieldvalue;
    #[Bla,bla,bla...]
    }

    ../Anders
     
    Anders Christensen, Apr 1, 2004
    #1
    1. Advertisements

  2. [ DO NOT MULTI-POST!!

    I just answered your question in alt.perl, since I didn't know that
    you had posted in comp.lang.perl.misc as well and that Bernard already
    had answered.

    That's rude! Behave yourself!! ]

    Anders Christensen wrote:
    > Could anyone help me understanding the following code-example.


    --
    Gunnar Hjalmarsson
    Email: http://www.gunnar.cc/cgi-bin/contact.pl
     
    Gunnar Hjalmarsson, Apr 1, 2004
    #2
    1. Advertisements

  3. Hi Gunnar,
    I'm sorry about that! :-/
    Thank you very much for your answer.
    ../Anders
     
    Anders Christensen, Apr 1, 2004
    #3
  4. Anders Christensen wrote:
    > Hi Gunnar,
    > I'm sorry about that! :-/
    > Thank you very much for your answer.


    Okay...

    That's a netiquette thing. Now you know when you post to Usenet next
    time. ;-)

    --
    Gunnar Hjalmarsson
    Email: http://www.gunnar.cc/cgi-bin/contact.pl
     
    Gunnar Hjalmarsson, Apr 1, 2004
    #4
  5. Hi Gunnar,
    I'm sorry about that! :-/
    Thank you very much for your answer.
    ../Anders
     
    Anders Christensen, Apr 1, 2004
    #5
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. dpackwood
    Replies:
    3
    Views:
    2,168
  2. gabriele renzi
    Replies:
    2
    Views:
    365
    gabriele renzi
    Dec 31, 2005
  3. Ken Bloom
    Replies:
    3
    Views:
    453
  4. PerlFAQ Server

    FAQ 1.4 What are Perl 4, Perl 5, or Perl 6?

    PerlFAQ Server, Jan 23, 2011, in forum: Perl Misc
    Replies:
    0
    Views:
    516
    PerlFAQ Server
    Jan 23, 2011
  5. PerlFAQ Server
    Replies:
    0
    Views:
    996
    PerlFAQ Server
    Feb 3, 2011
  6. PerlFAQ Server

    FAQ 1.4 What are Perl 4, Perl 5, or Perl 6?

    PerlFAQ Server, Feb 27, 2011, in forum: Perl Misc
    Replies:
    0
    Views:
    517
    PerlFAQ Server
    Feb 27, 2011
  7. PerlFAQ Server
    Replies:
    0
    Views:
    966
    PerlFAQ Server
    Apr 4, 2011
  8. Dilbert
    Replies:
    0
    Views:
    1,052
    Dilbert
    Nov 10, 2011
Loading...