Answers

Question and Answer:

  Home  Perl Programming

⟩ What is the output of the following Perl program? 1 $p1 = "prog1.java"; 2 $p1 =~ s/(.*).java/$1.cpp/; 3 print "$p1n";

What is the output of the following Perl program?

1 $p1 = "prog1.java";

2 $p1 =~ s/(.*).java/$1.cpp/;

3 print "$p1n";

prog1.cpp

 201 views

More Questions for you: