@name1=$namearr[0]; is the same as saying $name1[0]=$namearr[0]; so there is nothing in $name1[2] to print out.
In reply to Re: How to extract the filenames in an array
by jwkrahn
in thread How to extract the filenames in an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |