Forgot your password?
typodupeerror
Perl

Journal: Perl code I need debugged

Journal by j-pimp
code:
sub genInvNum {
    my $i = 0;
    my @currInvNum;
    my $currInvNum;
    for ($i=0; $i<3; $i++) {
    #    $currInvNum[$i] = int ((rand 25) + 97);    #97 == a
        printf "%c", $currInvNum[$i];
    }
    for ($i=3; $i<9; $i++)
    {
        $currInvNum[$i] = int ((rand 9) + 1);
        print $currInvNum[$i];
    }
    $currInvNum = join ("", @currInvNum);
    print $currInvNum;
    print "\n";
}
Warnings generated:
C:\Documents and Settings\zippy\Desktop\VB>dlltest.pl
Name "main::currPrice" used only once: possible typo at C:\Documents and Setting
s\zippy\Desktop\VB\dlltest.pl line 12.
Name "main::currQuanity" used only once: possible typo at C:\Documents and Setti
ngs\zippy\Desktop\VB\dlltest.pl line 11.
Name "main::currInvNum" used only once: possible typo at C:\Documents and Settin
gs\zippy\Desktop\VB\dlltest.pl line 10.
Use of uninitialized value in printf at C:\Documents and Settings\zippy\Desktop\
VB\dlltest.pl line 30.
Use of uninitialized value in printf at C:\Documents and Settings\zippy\Desktop
\VB\dlltest.pl line 30.
Use of uninitialized value in printf at C:\Documents and Settings\zippy\Desktop
\VB\dlltest.pl line 30.
264472Use of uninitialized value in join or string at C:\Documents and Settings
\zippy\Desktop\VB\dlltest.pl line 39.
Use of uninitialized value in join or string at C:\Documents and Settings\zippy\
Desktop\VB\dlltest.pl line 39.
Use of uninitialized value in join or string at C:\Documents and Settings\zippy\
Desktop\VB\dlltest.pl line 39.
264472
Use of uninitialized value in printf at C:\Documents and Settings\zippy\Desktop\
VB\dlltest.pl line 30.
Use of uninitialized value in printf at C:\Documents and Settings\zippy\Desktop
\VB\dlltest.pl line 30.
Use of uninitialized value in printf at C:\Documents and Settings\zippy\Desktop
\VB\dlltest.pl line 30.
474368Use of uninitialized value in join or string at C:\Documents and Settings
\zippy\Desktop\VB\dlltest.pl line 39.
Use of uninitialized value in join or string at C:\Documents and Settings\zippy\
Desktop\VB\dlltest.pl line 39.
Use of uninitialized value in join or string at C:\Documents and Settings\zippy\
Desktop\VB\dlltest.pl line 39.
474368
Use of uninitialized value in printf at C:\Documents and Settings\zippy\Desktop\
VB\dlltest.pl line 30.
Use of uninitialized value in printf at C:\Documents and Settings\zippy\Desktop
\VB\dlltest.pl line 30.
Use of uninitialized value in printf at C:\Documents and Settings\zippy\Desktop
\VB\dlltest.pl line 30.
314528Use of uninitialized value in join or string at C:\Documents and Settings
\zippy\Desktop\VB\dlltest.pl line 39.
Use of uninitialized value in join or string at C:\Documents and Settings\zippy\
Desktop\VB\dlltest.pl line 39.
Use of uninitialized value in join or string at C:\Documents and Settings\zippy\
Desktop\VB\dlltest.pl line 39.
314528
Use of uninitialized value in printf at C:\Documents and Settings\zippy\Desktop\
VB\dlltest.pl line 30.
Use of uninitialized value in printf at C:\Documents and Settings\zippy\Desktop
\VB\dlltest.pl line 30.
Use of uninitialized value in printf at C:\Documents and Settings\zippy\Desktop
\VB\dlltest.pl line 30.
872981Use of uninitialized value in join or string at C:\Documents and Settings
\zippy\Desktop\VB\dlltest.pl line 39.
Use of uninitialized value in join or string at C:\Documents and Settings\zippy\
Desktop\VB\dlltest.pl line 39.
Use of uninitialized value in join or string at C:\Documents and Settings\zippy\
Desktop\VB\dlltest.pl line 39.
872981
Use of uninitialized value in printf at C:\Documents and Settings\zippy\Desktop\
VB\dlltest.pl line 30.
Use of uninitialized value in printf at C:\Documents and Settings\zippy\Desktop
\VB\dlltest.pl line 30.
Use of uninitialized value in printf at C:\Documents and Settings\zippy\Desktop
\VB\dlltest.pl line 30.
327151Use of uninitialized value in join or string at C:\Documents and Settings
\zippy\Desktop\VB\dlltest.pl line 39.
Use of uninitialized value in join or string at C:\Documents and Settings\zippy\
Desktop\VB\dlltest.pl line 39.
Use of uninitialized value in join or string at C:\Documents and Settings\zippy\
Desktop\VB\dlltest.pl line 39.
327151
Use of uninitialized value in printf at C:\Documents and Settings\zippy\Desktop\
VB\dlltest.pl line 30.
Use of uninitialized value in printf at C:\Documents and Settings\zippy\Desktop
\VB\dlltest.pl line 30.
Use of uninitialized value in printf at C:\Documents and Settings\zippy\Desktop
\VB\dlltest.pl line 30.
596394Use of uninitialized value in join or string at C:\Documents and Settings
\zippy\Desktop\VB\dlltest.pl line 39.
Use of uninitialized value in join or string at C:\Documents and Settings\zippy\
Desktop\VB\dlltest.pl line 39.
Use of uninitialized value in join or string at C:\Documents and Settings\zippy\
Desktop\VB\dlltest.pl line 39.
596394
Use of uninitialized value in printf at C:\Documents and Settings\zippy\Desktop\
VB\dlltest.pl line 30.
Use of uninitialized value in printf at C:\Documents and Settings\zippy\Desktop
\VB\dlltest.pl line 30.
Use of uninitialized value in printf at C:\Documents and Settings\zippy\Desktop
\VB\dlltest.pl line 30.
467551Use of uninitialized value in join or string at C:\Documents and Settings
\zippy\Desktop\VB\dlltest.pl line 39.
Use of uninitialized value in join or string at C:\Documents and Settings\zippy\
Desktop\VB\dlltest.pl line 39.
Use of uninitialized value in join or string at C:\Documents and Settings\zippy\
Desktop\VB\dlltest.pl line 39.
467551
Use of uninitialized value in printf at C:\Documents and Settings\zippy\Desktop\
VB\dlltest.pl line 30.
Use of uninitialized value in printf at C:\Documents and Settings\zippy\Desktop
\VB\dlltest.pl line 30.
Use of uninitialized value in printf at C:\Documents and Settings\zippy\Desktop
\VB\dlltest.pl line 30.
579217Use of uninitialized value in join or string at C:\Documents and Settings
\zippy\Desktop\VB\dlltest.pl line 39.
Use of uninitialized value in join or string at C:\Documents and Settings\zippy\
Desktop\VB\dlltest.pl line 39.
Use of uninitialized value in join or string at C:\Documents and Settings\zippy\
Desktop\VB\dlltest.pl line 39.
579217
Use of uninitialized value in printf at C:\Documents and Settings\zippy\Desktop\
VB\dlltest.pl line 30.
Use of uninitialized value in printf at C:\Documents and Settings\zippy\Desktop
\VB\dlltest.pl line 30.
Use of uninitialized value in printf at C:\Documents and Settings\zippy\Desktop
\VB\dlltest.pl line 30.
783399Use of uninitialized value in join or string at C:\Documents and Settings
\zippy\Desktop\VB\dlltest.pl line 39.
Use of uninitialized value in join or string at C:\Documents and Settings\zippy\
Desktop\VB\dlltest.pl line 39.
Use of uninitialized value in join or string at C:\Documents and Settings\zippy\
Desktop\VB\dlltest.pl line 39.
783399
Use of uninitialized value in printf at C:\Documents and Settings\zippy\Desktop\
VB\dlltest.pl line 30.
Use of uninitialized value in printf at C:\Documents and Settings\zippy\Desktop
\VB\dlltest.pl line 30.
Use of uninitialized value in printf at C:\Documents and Settings\zippy\Desktop
\VB\dlltest.pl line 30.
678796Use of uninitialized value in join or string at C:\Documents and Settings
\zippy\Desktop\VB\dlltest.pl line 39.
Use of uninitialized value in join or string at C:\Documents and Settings\zippy\
Desktop\VB\dlltest.pl line 39.
Use of uninitialized value in join or string at C:\Documents and Settings\zippy\
Desktop\VB\dlltest.pl line 39.
678796

Time sharing: The use of many people by the computer.

Working...