in reply to Re: general perl question
in thread In-place editing of files (was: general perl question)
In fact, there was an Obfuscated Perl contest entry a while back that does DOS-to-Unix conversions using only command line switches on the shebang line.#!/usr/bin/perl -w -i.bak -p $_ = uc;
xoxo,
Andy
# Andy Lester http://www.petdance.com AIM:petdance
%_=split';','.; Perl ;@;st a;m;ker;p;not;o;hac;t;her;y;ju';
print map $_{$_}, split //,
'andy@petdance.com'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: converting files in place
by repson (Chaplain) on Apr 25, 2001 at 07:31 UTC |