[EMAIL PROTECTED] wrote:
I tried that as:

<a href="$pre/woopi.pl?action=something">Something</a>
<a href="$pre/new.pl?action=wit">SOmwhere</a>

and it doesnt work when $a == 1 the printed out results is
nc_/new.pl?Action=wit ? I also tried
if $pre = 'nc_', that's what I would expect it to print.  What were you
expecting ?  You should also set $pre to a default when $a isn't 1:

	my $pre = '';
	$pre = 'nc_' if $a == 1;
or
	my $pre = ($a == 1) ? 'nc_' : '';

<a href="$pre\\woopi.pl?action=something">Something</a>
<a href="$pre\\new.pl?action=wit">SOmwhere</a>
and for some reason it still print out nc_/new.pl?Action=wit if $a==1

Any ideas?
If it's not doing what you want, show what it is doing and what you want it
to do so we can point you at the correct solution.

--
  ,-/-  __      _  _         $Bill Luebkert   ICQ=162126130
 (_/   /  )    // //       DBE Collectibles   Mailto:[EMAIL PROTECTED]
  / ) /--<  o // //      http://dbecoll.tripod.com/ (Free site for Perl)
-/-' /___/_<_</_</_     Castle of Medieval Myth & Magic http://www.todbe.com/

_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to