Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^4: To initialise or not to initialise?

by kiat (Vicar)
on Jun 24, 2004 at 13:52 UTC ( #369359=note: print w/replies, xml ) Need Help??


in reply to Re^3: To initialise or not to initialise?
in thread To initialise or not to initialise?

Ah okay.

I thought it might be something to do with concatenation at first, which also shows a subtle difference:

my $var1; print $var1 .= 'r', "\n"; # prints r my $var2 = ''; print $var2 .= 'r', "\n"; #prints r my $var3 = 0; print $var3 .= 'r', "\n"; #prints 0r
:)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://369359]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2021-10-18 15:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (74 votes). Check out past polls.

    Notices?