Ratna_Ranjan has asked for the wisdom of the Perl Monks concerning the following question:
data name aliasname, alsoknown class type
output
data name aliasname, alsoknown class type
what i want is data name aliasname, alsoknown class type
here is the code that i have tried
any suggestions on how to split these kinds of data?#!/usr/bin/perl use strict; my $var; open(FH,"sample.txt")or die("can't open file:$!"); while($var=<FH>) { my @vareach=split("\t",$var); for my $each(@vareach) { print "$each\n"; } }
|
|---|