newbie question

K

kaptain kernel

sorry , i'm new to perl.

i'm trying to decipher some perl code at work, and i was wondering what does
this mean:

$myvariable=100*


doe this mean multiple myvariable by 100?
 
A

Anno Siegel

kaptain kernel said:
sorry , i'm new to perl.

i'm trying to decipher some perl code at work, and i was wondering what does
this mean:

$myvariable=100*


doe this mean multiple myvariable by 100?

No. It's not Perl. Copy and paste the actual code.

Anno
 
K

kaptain kernel

Anno said:
No. It's not Perl. Copy and paste the actual code.

Anno

my bad - the code was poorly formatted.

it looked like this:

$myvariable=100*


$anothervariable




when it should be

$myvariable=100*$anothervariable
 
A

Anno Siegel

kaptain kernel said:
my bad - the code was poorly formatted.

it looked like this:

$myvariable=100*


$anothervariable




when it should be

$myvariable=100*$anothervariable

To answer your question, that multiplies the value in $anothervariable
with 100 and assigns the result to $myvariable. The statement is still
missing a semicolon (";") at the end, which would be needed if more
statements were to follow.

However, this isn't going to take you anywhere. You are not going
to learn Perl by presenting tiny snippets of Perl code to the group
asking for an explanation. The group isn't going to go along much
either.

Get a decent tutorial, like _Learning Perl_ from O'Reilly. If that
raises specific questions, you can ask them here.

Anno
 

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,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top