Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Problem with <STDIN>

by borisz (Canon)
on Jun 28, 2006 at 07:27 UTC ( [id://557956]=note: print w/replies, xml ) Need Help??


in reply to Problem with <STDIN>

The problem is about undef $/; delay it until you want to slurp the file
foreach ( grep( /^.*\.xml$/, readdir(DIR) ) ) { print "Pls enter Section level value for $_ : "; chop( $seclev = <STDIN> ); { local $/; open( FIN, "<$_" ) or die("$_ is not opened\n"); .. } }
Boris

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (None)
    As of 2024-04-25 01:41 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found