Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: subroutine function

by roboticus (Chancellor)
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 avoiding work at the Monastery: (6)
As of 2015-07-05 15:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls