|
|
Up |
|
|
  |
Author: Kevin ZembowerKevin Zembower
Date: Jan 11, 2008 13:16
When I execute this line:
$type eq "unknown" ? $type="human" : $type="both";
$type is always "both". But executing this line:
if ($type eq "unknown") {$type="human"} else {$type="both"};
$type is "human", which is want I want and expect. The context for these
statements in my program is pasted in at the bottom.
Thanks for your guidance.
-Kevin
Kevin Zembower
Internet Services Group manager
Center for Communication Programs
Bloomberg School of Public Health
Johns Hopkins University
111 Market Place, Suite 310
Baltimore, Maryland 21202
410-659-6139
====================================
my $type = "unknown"; #The default.
|
| Show full article (1.28Kb) |
|
| |
3 Comments |
|
  |
Author: Oryann9Oryann9
Date: Jan 11, 2008 11:32
>You're misusing it. Set it within the wanted() routine when you're
>looking at
>a directory that you don't want to descend. It'll be cleared to 0
>before
>calling wanted(), so setting it before calling find() is completely
>useless.
>--
>Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777
>0095
> stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
>Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
-
Is this what you mean on line 9? I tried and it does not seem to work,
meaning it still descending.
|
| Show full article (1.50Kb) |
|
| |
no comments
|
|
  |
Author: Anjan PurkayasthaAnjan Purkayastha
Date: Jan 11, 2008 11:06
i too am having problems installing the Math::Complex module. Specifically,
LWP does not seem to be available. At the end of the build steps I get an
error message:
writing makefile for Math::Complex
Not OK
running make test
Can't test without successul make
Running make install
make had returned bad status, install seems imposssible.
any thoughts?
Anjan
--
ANJAN PURKAYASTHA, PhD.
Senior Computational Biologist
==========================
1101 King Street, Suite 310,
Alexandria, VA 22314.
703.518.8040 (office)
703.740.6939 (mobile)
|
| Show full article (0.66Kb) |
|
1 Comment |
|
  |
Author: Jenny ChenJenny Chen
Date: Jan 11, 2008 10:46
Hi everyone,
How is everybody doing? I need to use Math::Trig::acos(), but not able to find it on CPAN. Does anyone know where I can download it from?
Thanks
Jenny
|
| |
|
1 Comment |
|
  |
|
|
  |
Author: PerlmunkyPerlmunky
Date: Jan 11, 2008 06:11
Hi List,
I am in the process of making a web service which will (at some point) query
an oracle DB with some user supplied text. Currently the page allows the
user to select the information in the insert from a tick box, the tables
from a list and the conditional they can choose and then enter associated
text.
I realise that this is not smart, at least without any parameter checking.
I need a way of making the information 'safe' - avoid sql injections etc. I
have tried using $dbh->quote($string) but this creates errors if the key
word entered by the users is null - as oracle thinks this is not a keyword.
hints, tips and solutions accepted :)
I don't have admin rights and can't install any modules that aren't already
available. The project is running under perl catalyst.
Thanks in advance
|
| |
|
5 Comments |
|
  |
|
|
  |
|
|
|
|
|