in reply to A little Christmas switch wish..
Also save this code as 'stdinhack.pl':package NFlag; use Filter::Simple sub { s/^([^#].+)/LINE: while (<DATA>) {\n$1\n}\n/ms; }; 'to demerphq';
Then you can call it with the command line perl -MNFlag stdinhack.pl.#!/usr/bin/perl -w use strict; print scalar reverse $_; __DATA__ sdrawkcab niaga tub retrohs
|
|---|