Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Argument values

by TheoPetersen (Priest)
on Jul 23, 2001 at 23:03 UTC ( #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.


Comment on Re: Argument values
Select or Download Code
(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
Node Status?
node history
Node Type: note [id://99126]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2014-07-29 09:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (212 votes), past polls