What is the output of these lines of code?

Consider the following lines of code:
$_ = “This is a test”;
s/^([^ ]*)\s*([^ ]*)/$2 $1/;
print;
What is the output of these lines of code?

Consider the following lines of code:
$_ = “This is a test”;
s/^([^ ]*)\s*([^ ]*)/$2 $1/;
print;
What is the output of these lines of code?

A.
hTis a test

B.
isThis a test

C.
i Thiss a test

D.
his T is a test



Leave a Reply 0

Your email address will not be published. Required fields are marked *