News

I'm working on a basic perl script that needs to print (to a file) a variable all on one line. The variable is initially read in from a file where it may contain one or mare carriage returns or "\n"s.
I call my script, derived from many Perl command examples that I’ve encountered ... are likely to be far more sophisticated than this basic Perlscript that just issues a reaffirming message ...
I write Perl programs that use the Windows shell command dir. The dir command is built into cmd.exe and there is no dir.exe in the System folder. My colleagues use my Perl programs and some of ...
To skip over blanks lines in a perl script, you have several choices. You could use a “next if /^$/” (skip if empty) command or a “next if /^s*$/” skip if empty or only white space.
First, a disclaimer: one of us had a tiny role in the production of the book we are reviewing, Dave Roth’s Win32 Perl Scripting: The Administrator’s Handbook. Cameron wanted to work on the ...