Sample Exercises

Command Line: To Program

Return to exercise list

Write a Perl program that is equivalent to this command-line program:

perl -pe "s/java/perl/gi"

Turn in the program as your answer.

Solution for To Program

Solution