Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: system call and newline interpretattion.

by Fang (Pilgrim)
on May 24, 2005 at 14:42 UTC ( [id://460005]=note: print w/replies, xml ) Need Help??


in reply to system call and newline interpretattion.

Two thoughts:

  • check all the variables you're using ($user, $ip, $_, etc.) are correctly chomped, especially if some of them are coming from user input, which you didn't mention. From the ouput you provided, it looks to me like $_ has a trailing newline.
  • use the list syntax of the system command, i.e. system($command, $arg1, $arg2), it's always been considered better (as in safer) from what I've read.

Update: ah, well, 5 replies and problem solved by the time I submitted this... nevermind me.

  • Comment on Re: system call and newline interpretattion.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-26 04:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found