Computing.Net > Forums > Programming > Solaris, C++, and Perl at a PArty

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Solaris, C++, and Perl at a PArty

Reply to Message Icon

Name: Joseph
Date: May 21, 2003 at 13:39:10 Pacific
OS: Solaris
CPU/Ram: PIII 450, 256 mb
Comment:

Hi,

Two questions. One, I am compiling a c++ program on Solaris and i used
gcc -o program.exe blah.cpp ha.cpp -(somthing)
i forgot what teh something was but it eliminated the problem of unreferenced operators in the program. something like -$lstrp or something like that.

Two, i am using this while loop in a perl script
while() {
}
but it keeps going forever or does nothing butjust sits and i cant get out of it unless i restart the ssh connection. the code is like this:

open(IN"some bin file");
while(){
if (!m/^\#/ && $dormcnt 20){
chomp;
$dormcnt++;
($ip,$flows,$oct,$pack) = split(" ",$_,4);
&getipnam;
print MAIL "$ip\t$name\t$oct\n";}}

so it just gives me a new line and i can type whatever but not get back to the prompt...

any help would be much appreciated.

joe



Sponsored Link
Ads by Google

Response Number 1
Name: SN
Date: May 21, 2003 at 15:45:22 Pacific
Reply:

It looks like some of your programming code got lost in the posting. Post it again, only this time click the "Trying to post programming code" link on the confirm page and follow the directions.
-SN


0
Reply to Message Icon

Related Posts

See More


Using Patch.exe Javascript: ProcessMessag...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Solaris, C++, and Perl at a PArty

c# and .NET as windows application www.computing.net/answers/programming/c-and-net-as-windows-application/7411.html

C++ and Lynx www.computing.net/answers/programming/c-and-lynx/8421.html

C++ how to patch a file? www.computing.net/answers/programming/c-how-to-patch-a-file/15027.html