> > > > How Do I initialize an empty array so thtat I don't get an unitiialized > > error? > > > > ... > > my @rows; > > > > I thought I could do something like @rows = new (); but it's not working. > > > > Drop the 'new': > > my @rows = (); >
Are you sure you are getting the warning on the array or on the elements of the array you are using? In which case you can check for definedness, before using the value, perldoc -f defined or if you know the length of the array ahead of time: my @rows = ('','',''); For a three element array.... http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]