Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^4: Perl network programming

by Viki@Stag (Sexton)
on Oct 03, 2007 at 10:37 UTC ( #642369=note: print w/replies, xml ) Need Help??

in reply to Re^3: Perl network programming
in thread Perl network programming

$cfile = $ENV{'OCONFFILE'};
open( CFILE, $cfile ) || return "FAIL0:No such file: $cfile!\n";

The code given above is the actual part tht gets the config file path & opens the file for read.

As u said the code is huge for me to post it. Anyway i got around the issue, it was with setting the global variable OCONFFILE to correct path.

jbert, thanks once again

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://642369]
[sierpinski]: thanks LanX that helps
[haukex]: the first index is always 0 - $#array gives you the last index in @array
[sierpinski]: gotcha, thanks
[LanX]: length = last index +1

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (11)
As of 2017-12-13 16:06 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (369 votes). Check out past polls.