What I am trying to get it to print is a reference to the one perl
example.pl when a != 1 then make it print exactly nc_example.pl when it does
= 1. So I have two sets of files say a.pl and nc_a.pl and I would like to
use a.pl as default unless a==1 then user the nc_a.pl in others just prepend
the nc_ to the file name. The file names are a.pl and nc_a.pl physcally
named that  on the webserver.

Thanks,
John

> [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
>

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

Reply via email to