Search Results

Search: Posts Made By: brianadams
1,202
Posted By brianadams
#!/usr/bin/env perl open( $fh, "<", "file")...
#!/usr/bin/env perl

open( $fh, "<", "file") or die "Cannot open file: $!\n";

while( my $line = <$fh>) {
chomp($line);
my @array = split /\s+/, $line; # split to get 3rd field
if (...
1,110
Posted By brianadams
#!/usr/bin/env perl open( $fh, "<",...
#!/usr/bin/env perl

open( $fh, "<", "yourfile") or die "Cannot open file: $!\n";
# go through the file line by line
while( my $line = <$fh>) {
chomp($line); #...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 01:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy