Friday, 16 November 2012

What are the three ways to empty an array? | Perl Scripting Interiew Questions

The three different ways to empty an array are as follows
1) You can empty an array by setting its length to a negative number.
2) Another way of empting an array is to assign the null list ().
3) Try to clear an array by setting it to undef, but be aware when you set to undef.

No comments: