Forum Moderators: coopster & phranque

Message Too Old, No Replies

putting var into link?

         

sammy

10:48 pm on Oct 1, 2001 (gmt 0)



hi....i have yet another question...being a newbie to perl ...
i've tried to create a dynamic link to pages without having to know the name of the actual link...ie...

$link = var with name of next web page

the actual link is <a href=<% $link %> > next_page </a>
but IIS complains to me...i was wondering how i can make this work...i know you can...but just don't know the correct syntax...

can you please help me? thanks!

sammy

10:53 pm on Oct 1, 2001 (gmt 0)



ok...never mind...i'm stoopid...
i forgot the ";" ... kekkeke
sorry

sugarkane

11:02 pm on Oct 1, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hehe, glad to hear you've got it fixed...

I spent 2 hours today going insane because a script didn't work, and yes - it was a simple typo like yours :)

sammy

11:55 pm on Oct 1, 2001 (gmt 0)



heh heh...yeah...it really sux when such a small thing as a ";" or something as such can cause so many problems!

Brett_Tabke

11:12 am on Oct 4, 2001 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



That's where it really helps to be able to run the scripts local. You can dl and install ActiveState Perl real easy. Then just run the scripts from a command line:
"perl scriptname"

You can do syntax checking with
"perl -cw scriptname"