#!/usr/bin/perl -w use strict; ( @![(0)x5], my $x )= split /-/, "a-b-c-d-e-f-g-h-i-j"; # (undef)x5, # @![1..5], # @{[]}[(0)x5], print "\$x=($x)\n"; __END__ $x=(f)