Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: <DATA> file handle not working with Perl Starwbery 5.12.1

by Anonymous Monk
on Dec 23, 2010 at 05:15 UTC ( [id://878729]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://878729]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2024-04-23 09:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found