# One way.... { local $/ = '%'; chomp @sigs; # chomp uses the value of $/ to figure out what to remove } # or another s/%$// for @sigs;