Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: subroutine function

by roboticus (Canon)
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 making s'mores by the fire in the courtyard of the Monastery: (13)
As of 2014-09-16 19:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (45 votes), past polls