Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Hello, All
New to Perl..
Just want to print "userName" and current type of User License.
Please, help. Thanks
igor

Perl v5.6.1 for MSWin32===============================================

(@curusers = ars_GetListUser($ctrl, 2)) || die $ars_errstr; for($i = 0; $i < $#curusers ; $i+=2){ $key = $curusers[$i]; $value = $curusers[$i+1]; print "$i : $key : $value\n";} for $i (0 .. $#curusers){ for $value ( keys %{$curusers[$i]}) { print "$i:$value is $curusers[$i]{$value}\n"; } } ============================================================ 0 : HASH(0x1abf184) = HASH(0x256ba30) 0:userName is eprehn 0:licenseType is ARRAY(0x1ab51a8) 0:defaultNotifyMech is 0 0:connectTime is 1079451285 0:emailAddr is 0:currentLicenseType is ARRAY(0x1ab52e0) 0:lastAccess is 1079451886 0:licenseTag is ARRAY(0x1ab51c0)

20040315 Edit by Corion: Added code tags, added formatting


In reply to Just want to print "userName" by winbeing

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-25 23:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found