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

Re: problem in printing the result in the out put file

by thanos1983 (Parson)
on Feb 28, 2017 at 16:30 UTC ( [id://1183162]=note: print w/replies, xml ) Need Help??


in reply to problem in printing the result in the out put file

Hello hegaa,

Also another quick tip Don't Open Files in the old way. Open them in the new way (open)

Did not test the code.

open(my $out, '>>', 'port.txt') or die "Can't open < port.txt: $!"; print $out "\n$ip:$port\n"; close($out) or die "Can't close < port.txt: $!";;
Seeking for Perl wisdom...on the process of learning...not there...yet!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-23 17:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found