Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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 = ''; system("perl -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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://550655]
[vedagiri89]: i have searched many forum...not getting resolutions
[vedagiri89]: centos
[Corion]: vedagiri89: Either what choroba said, or maybe you misspelled some module name (on Windows), like use Strict; or something like that.
[vedagiri89]: @choroba, what to do for that
[Corion]: Ah, you are not on Windows, so disregard my opinion.
[vedagiri89]: in centos, how to fix this.
[choroba]: You have to find out why it happened. Was there an OS update?
[vedagiri89]: that is what i can't getting solution
[vedagiri89]: recently purchased centos server and doing migration of app

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (13)
As of 2018-06-19 11:21 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (113 votes). Check out past polls.