develooper Front page | perl.perl6.users | Postings from April 2018

nil mystery

Thread Next
From:
ToddAndMargo
Date:
April 30, 2018 01:59
Subject:
nil mystery
Message ID:
9a2df033-6e37-aae6-6466-6d2729dbec7c@zoho.com
Hi All,

These two throw an operating on a "Nil" error:
     $PartsStr ~= "$PartNo<br>";
     $PartsStr ~= "{$PartNo}<br>";


But this does not:
     $PartsStr ~= "{$PartNo}" ~ "<br>";


And this does not either:
     $PartsStr ~= "abcde<br>";

Huh?


Many thanks,
-T

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Serious error.
All shortcuts have disappeared.
Screen. Mind. Both are blank.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About