in reply to qw with comma delimiter

jacques,
I want to clear up some confusion. qw is white space delimited - period. It is also single quoted, so no interpolation is done.
my @array = ('$one', '@two', '%three'); my @qw_array = ($one @two %three);
You can't change the delimiter, so if it doesn't do what you want you should use something that does.
my @array = qw(a b c d); my $temp_string = join ',' , @array; my @new_array = split ',' , $temp_string;
The above code is just a demonstration of how to use join and split, but you really should use perldoc -f join and perldoc -f split for more information.

Cheers - L~R

Replies are listed 'Best First'.
Re: Re: qw with comma delimiter
by jacques (Priest) on Jul 26, 2003 at 05:04 UTC
    I want to clear up some confusion.

    Hmmm... maybe I didn't make myself clear.