ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl6-language
perl6-language
Hyper-concat
by Thomas Klausner other posts by this author
Jun 14 2005 1:21PM messages near this date
Re: Lvalue Str::words iterator | Re: Hyper-concat
Hi!

While playing around with some japh-obfus (which turned into my first commit
to Pugs, yay!) I spotted this

say <a b c>  >>~<< <1 2 3>;
# prints a1b2c3

my $string=<a b c>  >>~<< <1 2 3>;
say $string;
# prints a1 b2 c3

I suppose this is caused by some context things. C<say>  imposes list context
(as print in Perl 5), but the assignment imposes scalar context.

But where do the spaces in the second example come from?

(sorry if this question is obvious/FAQ, but I'm just starting Perl6/Pugs
stuff (finally...))


-- 
#!/usr/bin/perl                               http://domm.zsi.at
for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}
Thread:
Thomas Klausner
Ingo Blechschmidt
Larry Wall
Juerd
Larry Wall
Juerd
Rod Adams
Darren Duncan
Juerd

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved