%hash = map { split( /X/, $_ ) } ( "fooXbar","bishXbash"); %hash = split /X/, ("fooXbar","bishXbash");