#!/usr/bin/perl -w print "Input: "; chomp ($input = <>); print "Output: "; chomp ($output = <>); chmod 0700, "$input"; chmod 0700, "$output"; open (OUTPUT, ">> $output") || die "Error opening Output: $!\n"; open (INPUT, "< $input") || die "Error opening Input: $!\n"; while (<INPUT>) { print OUTPUT join("\n",split(/\W+/g, $_)); }
In reply to Yet Another Newbie Code... by majin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |