Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Problem with ASP/Perlscript

by the_slycer (Chaplain)
on Aug 06, 2002 at 21:41 UTC ( #188175=perlquestion: print w/replies, xml ) Need Help??

the_slycer has asked for the wisdom of the Perl Monks concerning the following question:

Ok, I give up!

Here's some code taken directly from an ASP/Perlscript page that I am playing with. I have it working properly as a regular cgi, but for speed, and being stuck with IIS, I thought I'd give the ASP bit a try.

I'm now running back to cgi with my tail between my legs.
.... previous stuff .... my $user = $ui{'NAME'}; #$user = $user . "jpg"; %> User name is <%= $user %> <% .... more stuff
So, you can see the commented out bit there. Leaving it as is, the user name prints properly - ie: auser. Uncommenting that concatentation, the user name prints like "Win32::OLE=HASH(0xd801834).jpg".

To say I'm confused is an understatement. Note that I've tried simply create a (static) hash in an alternate script, grab a key out of there, print it, concantate it etc, it all works fine. For some reason, this one does not.

I'm simply curious as to whether or not anybody has seen this same type of behaviour in ASP/Perlscript before.


Replies are listed 'Best First'.
Re: Problem with ASP/Perlscript
by Anonymous Monk on Aug 27, 2002 at 13:43 UTC
    Don't know if it will work but you could try putting quotes around $user: $user = "$user" . ".jpg"

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://188175]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2020-10-25 11:40 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (249 votes). Check out past polls.