Code:
open(ACCOUNT, $data_file) || die("Could not open file!");
@raw_data=<ACCOUNT>;
close(ACCOUNT);
foreach $account (@raw_data){
chop($account);
($username,$rank,$handle,$password,$group,$word)=split(/\|/,$account);
I want the ($username,$rank,$handle,$password,$group,$word) in a separate file but can't seem to get it right.
How could I go about doing this?