Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > Re: strings pri...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 7 Topic 10989 of 11531
Post > Topic >>

Re: strings printing bug

by chas.owens@[EMAIL PROTECTED] (Chas. Owens) Apr 27, 2008 at 12:47 PM

On Sat, Apr 26, 2008 at 3:42 PM,  <evan9021@[EMAIL PROTECTED]
> wrote:
> I tried your suggestion and got the following output:
>  1) the first col didn't print, and the 3rd col overwrote the 2nd; this
>  is the main stumbling block
>  2) also, what if example.txt has 36 lines with the same format as
>  described.
>  FYI I'm using cgywin's version of perl.
snip

It sounds like you have some control characters in your data.  Run
this against the file and tell us what it outputs

perl -ne 'chomp; print map { ord, "\n" } /([[:cntrl:]])/g' example.txt

-- 
Chas. Owens
wonkden.net
The most im****tant skill a programmer can have is the ability to read.
 




 7 Posts in Topic:
strings printing bug
evan9021@[EMAIL PROTECTED  2008-04-25 05:40:46 
Re: strings printing bug
krahnj@[EMAIL PROTECTED]   2008-04-25 19:40:26 
Re: strings printing bug
Uri Guttman <uri@[EMAI  2008-04-26 03:27:35 
Re: strings printing bug
rob.dixon@[EMAIL PROTECTE  2008-04-26 14:55:58 
Re: strings printing bug
evan9021@[EMAIL PROTECTED  2008-04-26 12:42:46 
Re: strings printing bug
rob.dixon@[EMAIL PROTECTE  2008-04-27 18:31:23 
Re: strings printing bug
chas.owens@[EMAIL PROTECT  2008-04-27 12:47:37 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 19:06:52 CDT 2008.