CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
got a small problem..

 



mICKE
Deleted

Jan 8, 2001, 11:27 AM

Post #1 of 2 (143 views)
got a small problem.. Can't Post

why dosen't this work?
$ranking @line[0] / @line[1];




japhy
Enthusiast

Jan 8, 2001, 12:11 PM

Post #2 of 2 (140 views)
Re: got a small problem.. [In reply to] Can't Post

Perhaps you're forgetting the = sign? Here's a possible answer:


Code
$ranking = $line[0] / $line[1];

Notice that I used $ signs instead of @ signs, too.

Oh, and please be more descriptive!

Jeff "japhy" Pinyan -- accomplished hacker, teacher, lecturer, and author

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives