Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
and i was woundering how you would goet it to read from a#!/usr/bin/perl print "What file do you want to \"detabify?\" "; $file=<>; chomp $file; $/=undef; open FILE, "<$file"; $text=<FILE>; close FILE; $text=~s/\t/ /g; open FILE, ">$file"; print $text; close FILE;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Substitution Operator
by blakem (Monsignor) on Aug 28, 2001 at 11:57 UTC | |
|
Re: Substitution Operator
by bwana147 (Pilgrim) on Aug 28, 2001 at 11:52 UTC | |
|
Re: Substitution Operator
by Chady (Priest) on Aug 28, 2001 at 12:29 UTC | |
|
Re: Substitution Operator
by Zecho (Hermit) on Aug 28, 2001 at 12:50 UTC |