Programming Languages
C#
Subjective
Mar 15, 2013
What is the output of the following Perl program?
1 $p1 = "prog1.java";
2 $p1 =~ s/(.*)\.java/$1.cpp/;
3 print "$p1\n";
Detailed Explanation
prog1.cpp
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts