Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by fieldee

  1. fieldee

    Scalar = Variable?

    Hi, Urrk. Don't know what I was thinking earlier...of course this my $entireFile = (<FILEHANDLE>); won't give the entire file....I'm tired & overworked at the moment though! I'd usually do my $entireFile = join ('',(<FILEHANDLE>)); Ta ta Steve :)
  2. fieldee

    Scalar = Variable?

    Hi, &quot;...I still don't understand how saying if(@mydata) evaluates the array as a scalar? &quot; Me neither! It's part of the Perl language that it will try to do what you expect. It just comes with time & practice. I'm sure if I was a better scripter I'd learn exactly how this all...
  3. fieldee

    Scalar = Variable?

    Hi Martin, Not sure how well I'm able to explain this (hopefully one of the gurus here will do a better job) - basically Perl evaluates operations in either a scalar or list context. In the case of the array test you give, Perl is evaluating the array in a scalar context, which returns the...
  4. fieldee

    Scalar = Variable?

    Hi, A scalar is any 'singular' variable, ie. $scalar = &quot;bob&quot;; $scalarReferenceToa = \$a; $scalarAnonymousArrayReference = ['a','b','c']; If it starts with a '$', it's a scalar. A 'plural' variable is of course an array or hash. ie. @array = ('a','b','c'); %hash =...
  5. fieldee

    Delayed Cookie Updates

    Hi, Forgive me if I've misunderstood, but it seems you're not actually sending the cookie to the client, so of course the value of $ENV{HTTP_COOKIE} won't change. You need to create header, including the &quot;Set-Cookie: mycookie=mycookieval&quot; line, and send it to the client. The client...

Part and Inventory Search

Back
Top