in reply to Using qw

No, qw simply creates a list from the string you enter, SPLIT ON WHITE SPACE. There for your resulting list contains no white space, so print has none to output.

You may be confused by the behaviour of print "@days", which happens because any array in string context turns in to a list of it's elements joined by $", so "@days" is equivalent to join $",@dats.

Replies are listed 'Best First'.
Re^2: Using qw
by GrandFather (Saint) on Nov 18, 2005 at 02:03 UTC

    OP didn't actually use "@days". However to illustrate the difference:

    use strict; my @days; @days = qw(Monday Tuesday Wednesday Thursday Friday Saturday Sunday); local $" = ', '; print "@days\n"; print @days, "\n"

    Prints:

    Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday MondayTuesdayWednesdayThursdayFridaySaturdaySunday

    DWIM is Perl's answer to Gödel