1030071002
asked on
I am trying to do this in Perl
Write a program that takes a string of text, stores it in a control structure and does the following?
i. Prints it forward
ii. Prints it backwards
iii. Prints it without the first element
iv. Adds a new element to the front and prints
i. Prints it forward
ii. Prints it backwards
iii. Prints it without the first element
iv. Adds a new element to the front and prints
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
$text = "Reynard is the greatest Programmer in the world\n";
print $text;
print "\n";
print scalar reverse $text;
print "\n";
print substr $text,1;
print "\n";
print $text=$new.$test;
print $text;
print "\n";
print scalar reverse $text;
print "\n";
print substr $text,1;
print "\n";
print $text=$new.$test;
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you so much mabe you can help me with the others
ASKER
print $text=$new.$test;