Question on characterposition on a line

H

Huub

Hi,

I've been looking on CPAN for a way to determine the position of a
character on a line, but I can't find it. My goal is to print
address-labels with 3 labels horizontally. I haven't found a module
providing functions like this.

Thanks for hints and/or directions,

Huub
 
A

anno4000

Huub said:
Hi,

I've been looking on CPAN for a way to determine the position of a
character on a line, but I can't find it.

What does it mean to "determine the character position"? Query
where a certain character will go? Make sure a character goes
into a certain position? Position as in line/column? In pixels?
Characters? Printer points? Inches? Something else entirely?
My goal is to print
address-labels with 3 labels horizontally.

Labels with three labels? Should that be "lines"? If so, why do you
need to determine character positions (in whatever sense) for that?
I haven't found a module
providing functions like this.

As far as I am concerned, you have entirely failed to make clear what
functions you are looking for.

Anno
 
K

khadhar

Huub said:
Hi,

I've been looking on CPAN for a way to determine the position of a
character on a line, but I can't find it. My goal is to print
address-labels with 3 labels horizontally. I haven't found a module
providing functions like this.

Thanks for hints and/or directions,

Huub

Hi Hubb,

Perl has three functions index(), rindex(), and substr().
I guess you can use any of these.

you can take the line into a variable aas a string and process.

Hope this helps.

Thaufeeq.
 
T

Tad McClellan

Huub said:
I've been looking on CPAN for a way to determine the position of a
character on a line, but I can't find it.


perldoc -f index

My goal is to print
address-labels with 3 labels horizontally.


perldoc -f printf
 
H

Huub

Hi Hubb,

Perl has three functions index(), rindex(), and substr().
I guess you can use any of these.

you can take the line into a variable aas a string and process.

Hope this helps.

Thaufeeq.

Thank you.
 
A

axel

What does it mean to "determine the character position"? Query
where a certain character will go? Make sure a character goes
into a certain position? Position as in line/column? In pixels?
Characters? Printer points? Inches? Something else entirely?
Labels with three labels? Should that be "lines"? If so, why do you
need to determine character positions (in whatever sense) for that?

I think the OP means print labels onto paper which comes with rows of
three sticky labels.

It might well be worth looking at using formats for this sort of job,
since that also allows good vertical control. See:

perldoc perlform

Axel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,176
Messages
2,570,949
Members
47,500
Latest member
ArianneJsb

Latest Threads

Top