The Roopak Times wrote:
Hi All
I'm just a beginner with perl.
i was taking my initial lectures so i tried to make a program to slice a
value from an array.
the program was like this:
use warnings;
use strict;
my @array;
@array=qw( the quick brown fox ran over the lazy dog);
print "$array(4)\n";
This program does not show any result, besides it give me an error to
declare the variable $array.
I'm using perl 5.8.7 with windows XP.
Plz tell me the reason and the solution for the above problem.
-
Thankx & Regards
Roopak Kr Prajapat
Hello,
Using print "$array[4]\n"; solves your problem.
greetings
E.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>