Somethign about hashes

J

Jürgen Exner

Nikos said:
Maybe you can help me with this too:

print span( {class=>'tip'}, "Some Greek Text!" ); [...]
What am i doing wrong?

Well, did you actually read the error message? You didn't define the
subroutine span():

Undefined subroutine &main::span called at t.pl line 1.

jue
 
N

Nikos

J����������������������������������� said:
Nikos said:
Maybe you can help me with this too:

print span( {class=>'tip'}, "Some Greek Text!" );
[...]

What am i doing wrong?


Well, did you actually read the error message? You didn't define the
subroutine span():

Undefined subroutine &main::span called at t.pl line 1.

I dont understand well the erro messages.
Span has to be defined in use statements as well?
I though it was like font.
 
J

Jürgen Exner

Nikos said:
J??????????????????????????????????? said:
Nikos said:
Maybe you can help me with this too:

print span( {class=>'tip'}, "Some Greek Text!" ); [...]

What am i doing wrong?

Well, did you actually read the error message? You didn't define the
subroutine span():

Undefined subroutine &main::span called at t.pl line 1.

I dont understand well the erro messages.
Span has to be defined in use statements as well?
I though it was like font.

The Perl programming language has neither a function span() nor font().
Therefore you have to define them yourself if you want to use those
functions.

Details see "perldoc perlsub"

jue
 
N

Nikos

J����������������������������������� said:
Nikos said:
J??????????????????????????????????? said:
Nikos wrote:


Maybe you can help me with this too:

print span( {class=>'tip'}, "Some Greek Text!" );

[...]


What am i doing wrong?

Well, did you actually read the error message? You didn't define the
subroutine span():

Undefined subroutine &main::span called at t.pl line 1.

I dont understand well the erro messages.
Span has to be defined in use statements as well?
I though it was like font.


The Perl programming language has neither a function span() nor font().
Therefore you have to define them yourself if you want to use those
functions.

Details see "perldoc perlsub"

With fonts i didnt defined anything.
i just used print font(blabla...) and it worked.
Now span works the same without any extra definitions.
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top