Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: How do I replace \t and regarding to the alignment requirement ?

by Anonymous Monk
on Apr 19, 2012 at 13:33 UTC ( [id://965954]=note: print w/replies, xml ) Need Help??


in reply to How do I replace \t and regarding to the alignment requirement ?

It is unclear what you're trying to accomplish

my $input = "blah\tblah\tblah"; my $wanted = ...;

FWIW, a regex can't do nothing, substitution operator does stuff

  • Comment on Re: How do I replace \t and regarding to the alignment requirement ?
  • Download Code

Replies are listed 'Best First'.
Re^2: How do I replace \t and regarding to the alignment requirement ?
by Anonymous Monk on Apr 19, 2012 at 14:02 UTC

    input :blah\ta\tblah

    output:blah(4spaces)a(7spaces)blar

    :) That is not $input and $output :)

    $ perl -MPerl6::Form -le " print form q{{:[{8}]:}} x 3, qw/ blah a bla +h / " blah a blah
    12345678 12345678 12345678

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://965954]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-19 02:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found