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 |
| |||
| 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 |
| |||
| 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! |
| |||
| 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 | |
| |
LinkBacks (?)
LinkBack to this Thread: http://www.discussweb.com/perl/4520-how-concatenate-strings-perl.html | |||
| Posted By | For | Type | Date |
| DiscussWeb IT Community - Technical Support and Technology Discussions | This thread | Refback | 12-05-2007 08:59 AM |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| what is perl? | inder | Perl | 2 | 09-25-2008 04:10 AM |
| 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 |