Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Problem passing a string in system function

by DaWolf (Curate)
on May 20, 2006 at 08:44 UTC ( #550655=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Problem passing a string in system function
in thread Problem passing a string in system function

Ok, actually the system call is run under Acme::Spork. Could it be the cause?
Easiest, securest way to find if Acme::Spork (never heard of it) is the cause: take it out of the equation and test it!

Just write:
#!/usr/bin/perl -w use strict; my $uemail = 'foo@bar.com'; system("perl mycode.pl -email \"$uemail\"") or die "Well, probably NOT + a spork problem";

or better yet, comment the spork line of your code and do a simple system call as above. Either way will tell you if this module is or is not the cause of your problem.

<UPDATE> My apologies to HuckinFappy. I ended up answering the same thing...</UPDATE>

Just my two cents.


Comment on Re^3: Problem passing a string in system function
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://550655]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (11)
As of 2015-07-06 21:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (83 votes), past polls