in reply to <DATA> file handle not working with Perl Starwbery 5.12.1

What are those extra spaces you got there in __DATA__? Oh, and use <c>code here</c>

Replies are listed 'Best First'.
Re^2: <DATA> file handle not working with Perl Starwbery 5.12.1
by Generoso (Prior) on Dec 23, 2010 at 06:28 UTC

    This works fine for me.

    #! perl # use strict; use warnings; while(<DATA>){ print if /Norma/; } __DATA__ Steve Blenheim Betty Boop Igor Chevsky Norma Cord

    Result

    perl "D:\perl_TK\DBperl\perl6data.pl" Process started >>> Norma Cord <<< Process finished.
      Hi Thank you for help Cheers Sufi