sqspat has asked for the wisdom of the Perl Monks concerning the following question:
Code is returning ;42 my @command_array = <FILE>; 43 close(FILE); 44 45 print "@command_array\n"; 46 my @command_array_split = split(/:/,@command_array); 47 48 49 print "Individual Elements\n\n"; 50 print "@command_array_split[0]\n"; 51 print "@command_array_split[1]\n";
How do I print the array elements and not the # of lines in the array?fault-reportin email smtp-server 1.2.3.4 from me@here.com recipient me1@here.com recipient me2@here.com recipient me3@here.com recipient me4@here.com enable Individual elements 7 ---- Why is this coming back and not the value of the element--- + @command_array_split[0]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: problem printing array elements -- printing # of lines in array instead
by davorg (Chancellor) on Jul 13, 2009 at 13:42 UTC | |
|
Re: problem printing array elements -- printing # of lines in array instead
by moritz (Cardinal) on Jul 13, 2009 at 13:41 UTC | |
|
Re: problem printing array elements -- printing # of lines in array instead
by Corion (Patriarch) on Jul 13, 2009 at 13:39 UTC | |
|
Re: problem printing array elements -- printing # of lines in array instead
by Marshall (Canon) on Jul 13, 2009 at 14:54 UTC | |
|
Re: problem printing array elements -- printing # of lines in array instead
by biohisham (Priest) on Jul 13, 2009 at 15:59 UTC |