Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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


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


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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://998516]
[hippo]: Anyone able to get to https://deps. Not even getting a connection from here.
[choroba]: Down for everyone of just me
[shmem]: "Problem loading page" here
[marto]: seems down
[planetscape]: Able to ping but not connect with either Opera or Firefox
[thanos1983]: same here...
[choroba]: marto ;-)
[Discipulus]: after an error now is back
[shmem]: looks like a 302 loop - "The document has moved here"
[Discipulus]: ..but only http not https

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (12)
As of 2018-02-20 11:50 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (271 votes). Check out past polls.