• +91 9723535972
  • info@interviewmaterial.com

Perl Interview Questions and Answers

Question - Write a program to concatenate the $firststring and $secondstring and result of these strings should be separated by a single space.

Answer -

Syntax:

$result = $firststring . ” “.$secondstring;

Program:

#!/usr/bin/perl

$firststring = "abcd";

$secondstring = "efgh";

$combine = "$firststring $secondstring";

print "$Combine\n";
Output:

abcd efgh

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners