Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
go ahead... be a heretic
 
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 lurking in the Monastery: (5)
As of 2014-04-19 13:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (480 votes), past polls