Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Argument values

by TheoPetersen (Priest)
on Jul 23, 2001 at 23:03 UTC ( [id://99126]=note: print w/replies, xml ) Need Help??


in reply to Argument values

You don't give much to go on; what do you mean by "the value doesn't work"?

My first guess though would be that the problem is here in the main routine:

$user_name = em(param('name')); &file_creation($user_name);
file_creation then converts $user_name as so:
$user_name = substr($user_name, 1, 4);
The em function prints an <EM> tag, so $user_name ends up containing "EM>" plus the first character of the parameter value.

Replies are listed 'Best First'.
(ar0n) Re (2): Argument values
by ar0n (Priest) on Jul 23, 2001 at 23:14 UTC
    Not only that, but the variable in the expression directly above it is misspelled (note the lack of an underscore):
    ... if ( substr($username, 0, 1) eq "0" ) ...
    Please, use strict from now on!

    ar0n ]

      It's fixed guys, i wasnt sure what the em() was doing... thanks... sometimes you just dont see those little things that others see immediately and vice versa.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-20 00:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found