How To Concatenate Strings With Perl


  • 9 Jan, 2012

    Method #1 - using Perl's dot operator:$name = 'checkbook';$filename = "/tmp/" . $name . ".tmp";Method #2 - using Perl's join function$name = "checkbook";$filename = join "", "/tmp/", $name, ".tmp";Method #3 - usual way of concatenating strings$filename = "/tmp/${name}.tmp";

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 downloadmela.com. All rights reserved.