Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: FILE reading question.(closed filehandle) issue in script

by linuxer (Curate)
on Apr 05, 2009 at 16:54 UTC ( [id://755577]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/bin/perl -w
    use strict;         ## be strict! always!
    ...
    
    # no need for printf if you want to print simple strings
    print "Count of MAJOR = $major, CRITICAL = $critical, MINOR = $minor\n
    +";
    
  2. or download this
    #!/bin/perl -w
    use strict;           ## be strict! always!
    ...
        "Count of MAJOR = %d, CRITICAL = %d, MINOR = $%d\n",
        @count{qw(MAJOR CRITICAL MINOR)}
    );
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-19 06:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found