This is a discussion on How to concatenate strings with Perl? within the Perl forums, part of the Software Development category; Hi all, Can any one explain me with coding ...for how to concatenate strings with Perl?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi all, Can any one explain me with coding ...for how to concatenate strings with Perl?
__________________ cheers Aman |
|
#2
| |||
| |||
| Hi, Using Join and dot operator, you can concatenate string easily.
__________________ Regards, VELHARI I am not totally useless. I can be used for a bad example |
|
#3
| |||
| |||
| Yes...exactly vel! let me post some example.... using Perl's dot operator: $name = 'checkbook'; $filename = "/tmp/" . $name . ".tmp"; using Perl's join function $name = "checkbook"; $filename = join "", "/tmp/", $name, ".tmp";
__________________ S.VinothkumaR Behind me is infinite power, Before me is Endless Possibility, Around me is Boundless Opportunity, Why should I fear! |
|
#4
| |||
| |||
| By the way.... Actually...usual way of concatenating strings .... Code: $filename = "/tmp/${name}.tmp";
__________________ S.VinothkumaR Behind me is infinite power, Before me is Endless Possibility, Around me is Boundless Opportunity, Why should I fear! |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| what is perl? | inder | Perl | 2 | 01-07-2009 09:17 PM |
| Concatenate row values in a table | oxygen | Database Support | 1 | 02-08-2008 12:49 AM |
| Trimming strings in JavaScript | Pvinothkumar | HTML, CSS and Javascript Coding Techniques | 2 | 09-18-2007 09:34 PM |
| How to set Perl Interpreter within perl script | sivaramakrishnan | Perl | 1 | 07-19-2007 05:45 AM |
| Connection Strings Info | Gopisoft | VB.NET Programming | 0 | 07-17-2007 04:42 AM |
Our Partners |