Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: subroutine function

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

Help for this page

Select Code to Download


  1. or download this
    my $t = "apple";
    my $u = "banana";
    
    my $x = "Combined: " . $t . $u . "\n";
    
  2. or download this
    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
    

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 musing on the Monastery: (7)
As of 2015-07-05 04:29 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 (60 votes), past polls