Tech77 has asked for the wisdom of the Perl Monks concerning the following question:
When I use qw and print out these lists why are the results all run together with no spaces--MondayTuesdayWednesday, etc. I thought useing qw would allow Perl to print my array elements or list with the spaces as entered above. Can you help me understand why the results are run together? I know this must rank as one of the dumbest questions ever, but I'd appreciate the advice nonetheless.use strict; my @days; @days = qw(Monday Tuesday Wednesday Thursday Friday Saturday Sunday); print @days, "\n"; print qw(Monday Tuesday Wednesday Thursday Friday), "\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Using qw
by GrandFather (Saint) on Nov 18, 2005 at 01:52 UTC | |
by Tech77 (Novice) on Nov 18, 2005 at 19:15 UTC | |
Re: Using qw
by BUU (Prior) on Nov 18, 2005 at 01:47 UTC | |
by GrandFather (Saint) on Nov 18, 2005 at 02:03 UTC | |
Re: Using qw
by vishi83 (Pilgrim) on Nov 18, 2005 at 05:37 UTC |