strat has asked for the wisdom of the Perl Monks concerning the following question:
I just fell over an error with concatinating strings with numbers. Here is a short testscript:
If I write one or more spaces between 55 and the following dot, it is all ok. But this way, the dot after the 55 seems to be evaluated like a dot in a number like 55.23H:\>perl print "hello ".55." test\n"; String found where operator expected at - line 1, near "55." test\n"" (Missing operator before " test\n"?) ^Z syntax error at - line 1, near "55." test\n"" Execution of - aborted due to compilation errors. H:\>
Is this a bug or a feature?
Tested with the Perl-Versions:
Best regards,
perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Concatinating Numbers-Error: Bug or Feature
by BrowserUk (Patriarch) on Oct 29, 2002 at 11:06 UTC | |
|
Re: Concatinating Numbers-Error: Bug or Feature
by mce (Curate) on Oct 29, 2002 at 11:23 UTC | |
|
Re: Concatinating Numbers-Error: Bug or Feature
by busunsl (Vicar) on Oct 29, 2002 at 11:14 UTC | |
|
Re: Concatinating Numbers-Error: Bug or Feature
by gjb (Vicar) on Oct 29, 2002 at 19:48 UTC |