Link to home
Start Free TrialLog in
Avatar of 1030071002
1030071002Flag for United States of America

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
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 1030071002

ASKER

did not work
print $text=$new.$test;
$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;
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you so much mabe you can help me with the others