Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re^4: Insert newline

by vagabonding electron (Chaplain)
on Sep 16, 2011 at 13:22 UTC ( #926412=note: print w/replies, xml ) Need Help??

in reply to Re^3: Insert newline
in thread Insert newline

Still testing (now after finding my kennword at last ...).

Your pattern works fine, it was my paw marks yesterday, not the ones of your cat.

I noted however that some lines are not matched - and the matter seem to be utf8 signs in the text after the item ID. How this could matter in this script - I do not understand yet. But if I delete these signs in the DATA snippet, the lines are matched then.

Since I am really a novice in perl I just made a workaround - loaded the file into the MS Word, substituted the signs and saved as a txt again. It ran ok then.

I am still testing because this is a really big file with many thousands table IDs and resp. a lot of items-ID.

Many thanks! VE

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://926412]
[huck]: my @aa; for my $key (sort keys %hash){push @aa,$key,$hash{$ke y};} print join(',',@aa)."\n ";

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2018-05-27 08:05 GMT
Find Nodes?
    Voting Booth?