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
-
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.
|