my $line; my $content; open (FN,"D:\PerlDemo\parse.xml") or die "not found $!";scala
while($line=<FN>){ next if $. < 5; last if $. >10; $content.=$line; }xml
close(FN);ast
print "$content \n";foreach
my $K=<STDIN>;coding
my @R =qw (A B C D); my @m =qw (a b c d); my @r =qw (h k ); my @j=(@R , @m , @r);file
for(@j){ print $_ ."\t"; }next
while(my($key,$value) = each @R){ print "key= $key value =$value \n"; }di
foreach $index(0 .. $#R){ print "index $index : $R[$index] \n"; }while
print @R ."\n" ; print scalar(@R) ."\n";encoding
open (FN ,'<:encoding(UTF-8)',"$fileName") ; open (FN,'>:utf8',"$fileName") ;