$author =~ s/([^,;]+),([^,;]+)/$2, $1/g; [download]
In reply to Re^2: Changing the order of elements in the variable by bimleshsharma in thread Changing the order of elements in the variable by Shaveta_Chawla