in reply to Re: Difficulties with split
in thread Difficulties with split

Don't forget about the last char in strings of odd length:
my @vals = $ARGV[ 0 ] =~ /..|.$/g; print @vals;

Replies are listed 'Best First'.
Re^3: Difficulties with split
by jwkrahn (Abbot) on Apr 28, 2009 at 14:55 UTC

    OK:

    my @vals = $ARGV[ 0 ] =~ /..?/g; print @vals;