File: retro.p

package info (click to toggle)
ispell-czech 20040229-5.2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 3,588 kB
  • ctags: 5
  • sloc: perl: 703; makefile: 76; sh: 43
file content (11 lines) | stat: -rw-r--r-- 170 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/perl
while (<>) {
  s/\n$//;
  if (m#^([^/]+)(/.*)?$#) {
    $vystup=reverse($1);
    print $vystup, $2, "\n";
  } else {
    die "Cannot split: $_\n";
  }
}