Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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.

Thanks

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2020-06-02 02:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (12 votes). Check out past polls.

    Notices?