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

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.

Replies are listed 'Best First'.
Re^4: call tree analysis using perl
by stallion (Acolyte) on Feb 15, 2012 at 11:30 UTC
    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.