Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Unable to right to log-file

by artist (Parson)
on Jul 27, 2009 at 15:55 UTC ( #783579=note: print w/ replies, xml ) Need Help??


in reply to Unable to write to log-file

This particular error was visible to me, but in many cases other tools may have helped. For example, with emacs I usually never type the entire big word again. The editor has facility to do that for me with few keystrokes.

Using the basic tricks of Perl, such as 'use strict;' and 'use warnings;' can help to avoid such 'basic' errors. 'use diagnostics;' will help too.

The frustration of code not being working take lots of hours for programmers. Getting the basics right at the beginning can make you more confident and productive in long runs.



--Artist


Comment on Re: Unable to right to log-file
Download Code
Re^2: Unable to right to log-file
by Marshall (Prior) on Jul 28, 2009 at 01:13 UTC
    These things like "use strict;" and "use warnings;" aren't just "tricks", this is part and parcel of well written Perl code.

    I've used e-macs before but don't use it now. It appears you are using a Windows platform, but yes emacs could be used. Check into cygwin, http://www.cygwin.com/. This isn't Unix but it does a lot! This is how I installed my GNU C compilers. Familiar commands like ps, ls, cat will do things. like ps -h shown below......

    As with Unix, there are a number of good program editors for Windows. Notepad is definitely not the way! I use TextPad, but there are others.

    C:\TEMP>ps -h Usage: ps [-aefls] [-u UID] [-p PID] Report process status -a, --all show processes of all users -e, --everyone show processes of all users -f, --full show process uids, ppids -h, --help output usage information and exit -l, --long show process uids, ppids, pgids, winpids -p, --process show information for specified PID -s, --summary show process summary -u, --user list processes owned by UID -v, --version output version information and exit -W, --windows show windows as well as cygwin processes With no options, ps outputs the long format by default

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (14)
As of 2014-08-28 12:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (259 votes), past polls