I have a Perl file autoConfig.pl and it outputs comments to a log file. Where and by what name would this log file be created ? Wil it be in same location as autoConfig.pl ? OR will log file be created in different location ? Can someone please let me know from following code segment ?
....my $displayOnlyNonProdRegion = 0; $selected_release_cnt = 0; $logname = $cgi->{form}{LOGFILE}; $rowcnt = $cgi->{form}{rowcnt}; $user_id = $cgi->{cookie}{iw_user}; $site = $cgi->{form}{selected_site}; $releaseDCR = $cgi->{form}{selectedReleaseDCR}; if ($ENV{HTTP_REFERER} !~ "scc_sel_edition"){ ## if coming from deploy edition script $rowcnt = $cgi->{form}{release_cnt}; } #used to tunnel all of the GET/POST args that are not explicitly manag +ed by the cgi. $other_tunneled_data = $cgi->get_implicit_data_tunnel_html(); # open LOG_FILE, ">>$logname" or print "Unable to create logfile: $log +name\n"; open LOG_FILE, ">>$logname" or print "Unable to create logfile: " . av +t_encode_path($logname) . "\n"; autoflush LOG_FILE 1;...........
Thanks

In reply to Where does LOG_FILE get created with following code ? by manishrathi

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.