Hello all,
I'm new to perl but have read the faq.
I'm trying to create an arry from a file that contains in formation with in quotes. I would like to pull the "information" in to the arry and disregard the rest, not sure as to the best way to do this though.This is what I have so far but not getting the logic right yet.
START CODE:
$MEMBERS = "c:\\working\\post.txt";
open MEMBERS, $MEMBERS or die "Cannot open $MEMBERS for read :$!";
$membr = (<MEMBERS>,$_ );
while (<MEMBERS>) { if ($membr=~/"/ ) @names=split /"/, $membr print @names ;} else { print " not a member \n";}
}
END CODE
Thanks
I'm new to perl but have read the faq.
I'm trying to create an arry from a file that contains in formation with in quotes. I would like to pull the "information" in to the arry and disregard the rest, not sure as to the best way to do this though.This is what I have so far but not getting the logic right yet.
START CODE:
$MEMBERS = "c:\\working\\post.txt";
open MEMBERS, $MEMBERS or die "Cannot open $MEMBERS for read :$!";
$membr = (<MEMBERS>,$_ );
while (<MEMBERS>) { if ($membr=~/"/ ) @names=split /"/, $membr print @names ;} else { print " not a member \n";}
}
END CODE
Thanks