On Thu, 4 Aug 2005 20:21:18 +0800, Autrijus Tang <[EMAIL PROTECTED]>
wrote:
> On Thu, Aug 04, 2005 at 10:55:12AM +0400, Andrew Shitov wrote:
> > why do we have to give up a space when calling functions under Pugs?
> >
> > A need to type open('file.txt') instead of open ('file.txt') makes
> > me perplexing (not perl-flexing ;-) Our recent discussions in 'zip with()'
> > gave no answer.
>
> This is so:
>
> print (1+2)*3;
>
> can print 9, instead of 3.
Just out of curiousity, what would
print (1 + 2) * 3;
print?
FWIW I would *expect* print (1+2)*3; to print '3'
> However, all three forms below should still work:
>
> open('file.txt');
> open ('file.txt');
> open 'file.txt';
>
> Thanks,
> /Autrijus/
--
H.Merijn Brand Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using Perl 5.6.2, 5.8.0, 5.8.5, & 5.9.2 on HP-UX 10.20, 11.00 & 11.11,
AIX 4.3 & 5.2, SuSE 9.2 & 9.3, and Cygwin. http://www.cmve.net/~merijn
Smoking perl: http://www.test-smoke.org, perl QA: http://qa.perl.org
reports to: [EMAIL PROTECTED], [email protected]