in reply to Re: call tree analysis using perl
in thread call tree analysis using perl

Hi okol thank u for the response but im getting error msgs

Name "main::Data" used only once readline() on unopened filehandle DATA

Replies are listed 'Best First'.
Re^3: call tree analysis using perl
by Eliya (Vicar) on Feb 15, 2012 at 09:03 UTC

    As there is no Data in that script, I suppose you wrote

    while (<Data>){

    This is not the same as while (<DATA>){ because Perl is case-sensitive.

      I used DATA also but still its throwing up the same error.

        Then you've likely removed the __END__ part of the script, which is the data that can be accessed via the file handle DATA.  When Perl sees a __DATA__ or __END__ section, it makes the data following it available via the then pre-opened file handle DATA.

        See perldata.