When using quote word in perl is it possible to have a undef value in the list?
my @ number_array = qw( 1 2 3 4 5 6 7 8 9 10 )
What I am wondering is would it be possible to add a undef value to that list so that it contained 11 values instead of 10?
There’s no
nullin perl, but you can useundef. Sinceqwexplicitly operates only with space-separated string, you’d have to specify it outside ofqw, but you can easily write several lists inside brackets: