Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: subroutine function

by roboticus (Canon)
on Oct 11, 2012 at 19:05 UTC ( #998516=note: print w/ replies, xml ) Need Help??


in reply to subroutine function

truthseeker66:

The dot operator combines two strings. So given:

my $t = "apple"; my $u = "banana"; my $x = "Combined: " . $t . $u . "\n";

Perl starts to combine the strings:<\p>

my $x = "Combined: " . $t . $u . "\n"; # before we start = "Combined: " . "apple" . "banana" . "\n"; # expanded variables = "Combined: apple" . "banana" . "\n"; # combined first two = "Combined: applebanana" . "\n"; # then the next = "Combined: applebanana\n"; # then the last

...roboticus

When your only tool is a hammer, all problems look like your thumb.


Comment on Re: subroutine function
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2014-08-27 23:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (253 votes), past polls