Re: change chr(9) ?



Gunnar Hjalmarsson (noreply@xxxxxxxxx) wrote on MMMMCMXXIX September
MCMXCIII in <URL:news:54lqbqF21ebi0U1@xxxxxxxxxxxxxxxxxx>:
][ Abigail wrote:
][ > max wrote:
][ > !! I have txt file with chr(9) in text, how to change chr(9) - horizontal tab
][ > !! to chr(32)"space"
][ >
][ > I'd use 'tr'. But that isn't Perl.
][
][ Why do you say that 'tr' is not Perl?


$ which tr
/usr/bin/tr
$ which perl
/opt/perl/bin/perl



Abigail
--
#!/opt/perl/bin/perl -- # Remove trailing newline!
BEGIN{$SIG{__WARN__}=sub{$_=pop;y-_- -;print/".*(.)"/;
truncate$0,-1+-s$0;exec$0;}}//rekcaH_lreP_rehtona_tsuJ
.



Relevant Pages

  • Re: Docs comprehensibility
    ... who started his programming 'career' a few years ago by modifying Matt ... to fix the Perl documentation. ... >> feel confident enough. ... Gunnar Hjalmarsson ...
    (comp.lang.perl.misc)
  • Re: redirect without meta
    ... Tad McClellan wrote: ... it was a CGI problem rather than a Perl ... system interaction, emails, database communication etc. ... Gunnar Hjalmarsson ...
    (comp.lang.perl.misc)
  • Re: redirect without meta
    ... >> program written in Perl. ... >> system interaction, emails, database communication etc. politely ... There was nothing wrong with your response; ... Gunnar Hjalmarsson ...
    (comp.lang.perl.misc)
  • Re: clpannounce problem
    ... Your posting for comp.lang.perl.announce has been received and queued. ... moderated group for announcements of new releases of perl ... Please do not include the *entire* documentation of your item. ... Gunnar Hjalmarsson ...
    (comp.lang.perl.misc)
  • Re: Why does Perl use more resource than Php?
    ... A Perl app that means a large number ... >> require less CPU for a similar app, so the language may well be ... Gunnar Hjalmarsson ...
    (comp.lang.perl.misc)