Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Just want to print "userName"

by iburrell (Chaplain)
on Mar 16, 2004 at 21:50 UTC ( [id://337142]=note: print w/replies, xml ) Need Help??


in reply to Just want to print "userName"

Can you reformat your code? It is hard to tell if you have a logic error or if the formatting is messing it up. The important thing is how you are accessinging the array elements. "$curusers$i" is meaningless.
for $i (0 .. $#curusers) { print "$i: $value: $curusers[$i]{$value}"; }
Also, is there a reason you are stepping through the @curusers array two elements at a time

Replies are listed 'Best First'.
Re: Re: Just want to print "userName"
by Anomynous Monk (Scribe) on Mar 17, 2004 at 04:07 UTC
    When you see something like $curusers$i, the fact that $i shows as a link indicates that the poster did have brackets but forgot <code> so it was interpreted as a link and the brackets removed.

    You can click on the little tiny "xml" link under the node title to see what was actually entered.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (9)
As of 2024-03-28 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found