Find the answer to your Linux question:
Results 1 to 4 of 4
Does anyone know of a program that would convert everything typed into it, into its backwards form?...
  1. #1
    Banned
    Join Date
    May 2005
    Posts
    75

    Typing Backwards Program

    Does anyone know of a program that would convert everything typed into it, into its backwards form?

  2. #2
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,228
    Code:
    #!/usr/bin/perl
    
    print "Enter Anything: ";
    chomp&#40;$string = <STDIN>&#41;;
    
    $string = reverse $string;
    
    print "$string\n";

    There you go.
    DISTRO=Arch
    Registered Linux User #388732

  3. #3
    Banned
    Join Date
    May 2005
    Posts
    75
    Quote Originally Posted by Cabhan
    Code:
    #!/usr/bin/perl
    
    print "Enter Anything&#58; ";
    chomp&#40;$string = <STDIN>&#41;;
    
    $string = reverse $string;
    
    print "$string\n";

    There you go.
    Thank you kind sir.

  4. #4
    Linux Enthusiast
    Join Date
    Aug 2005
    Posts
    542
    What would the point be?
    To kill time?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •