in reply to Retrieve only what I need from split without using temp array

Well, this is a little overkill for this situation, sometimes

print do{my @temp=split /,/,$foo; $temp[2]},"\n";

comes in useful:

my $slurped=do{local $/; open my $fh,$file or die "$file:$!"; <$fh>};

---
demerphq

<Elian> And I do take a kind of perverse pleasure in having an OO assembly language...