May 24, 2016, 11:37 AM
Post #1 of 2
I've been given the job of supporting some perl applications and I'm trying to figure out what this line of code is trying to do given this type of input. A tar file is being processed and give this code what is suppose to be assigned to $var based on the tar file looking like...
$var =~ s|,$|| command
open ( T, "tar -xvf test.tar" ) || die "cannot open";
my ( $x, $var ) = split();
$var =~ s|,$||;
(This post was edited by TClayJ on May 24, 2016, 11:49 AM)