Horje
read a file in perl Code Example
[Solved] - read a file in perl Code Example
Try following codes
read a file in perl
#!/usr/bin/perl
use warnings;
use strict;

my $filename = 'c:\temp\test.txt';

open(FH, '<', $filename) or die $!;

while(<FH>){
   print $_;
}

close(FH);
Code language: Perl (perl)
Date: 2022-05-21 05:02:10
Category: perl
More for You