split
#!/usr/bin/perl
my $file = "sample.txt";
open(FH,"<$file") or die;
my $line =
chomp($line);
##
my ($A,$B,$C) = $line =~ /(\d+) (\d+) (\d+)/;
##
## or
## ""split
#my ($A,$B,$C) = split(/ /,$line);
print "A: $A\
";
print "B: $B\
";
print "C: $C\
";