#!/usr/bin/perl -w use strict; use Curses; $SIG{'INT'} = sub {endwin; exit(0);}; initscr; cbreak; noecho; clear; for (my $i = 0;;$i++) { if ($i % 2) { addstr(0, $i % 80, '%-'); } else { addstr(0, $i % 80, '%<'); } select(undef, undef, undef, 0.25); # sleep for 1/4 second addstr(0, ($i - 2) % 80, ' '); move(1, 0); refresh; } __END__ =pod =head1 NAME rws -- Running With Scissors =head1 SYNOPSIS B<rws> =head1 DESCRIPTION Trolls for a response from Randal. Press the interrupt key (usually Ctrl-C) to quit. =head1 INSTALLATION You may have to change the first line if B<Perl> is not in F</usr/bin> + on your system. You will also need the B<Curses.pm> module (which is in +the F<libcurses-perl> package in Debian GNU/Linux.) Other than that, just make the script executable and you are ready to go. =head1 BUGS Assumes terminal line length is 80 -- itself an example of running wit +h scissors! =head1 AUTHOR Jaldhar H. Vyas E<lt>jaldhar@braincells.comE<gt> =head1 LICENSE This code is free software under the Crowley Public License ("Do what thou wilt shall be the whole of the license") =head1 VERSION 1.0 -- Aug 5, 2000 =cut

In reply to Running With Scissors by jaldhar

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.