#!/usr/bin/perl use strict; use warnings; my ($field1,$field2) = (); $_ = ; ($field1, $field2) = split(/;/); print $field1,",",$field2; __DATA__ hi;there #### hi,there