Fix: Microsoft VBScript compilation error 800A0408: Invalid character

Fixing Microsoft VBScript compilation error 800A0408: Invalid character When you run a newly authored VBScript code that you copied from an existing/working script, you may possibly receive the “Microsoft VBScript compilation error 800A0408: Invalid character” as shown below. ————————— Windows Script Host Script:    C:TestRunBatch.vbs Line:    1 Char:    1 Error:    Invalid character Code:    800A0408 Source:     Microsoft VBScript compilation error ————————— OK ————————— Analysis: This error usually indicates that there is an invalid character in the script that VBScript compiler can’t understand. Thus it fails with the error. Cause: Very common cause for this error would the File Encoding used by the […]

Read more

Compiling Perl Modules on Windows

Compiling Perl Modules for Windows systems includes:   Executing Makefile.PL   NMAKE.EXE Test   Generating .ppd Files Commands for compiling Perl Modules on Windows Systems: Ensure you have Visual Studio installed in-order to support the name.exe. For this run VCVARS32.BAT file from VS. C:>path | grep -i vc98 C:>"C:Program FilesMicrosoft Visual StudioVC98BinVCVARS32.BAT" Setting environment for using Microsoft Visual C++ tools. C:> Navigate to the folder where your modules are existing: C:srcSystems-Windows-Log>perl Makefile.PL Checking if your kit is complete… Looks good Writing Makefile for Systems::Windows::Log C:srcSystems-Windows-Log> Run Nmake.exe C:srcSystems-Windows-Log>C:ToolsbinNMAKE.EXE Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. […]

Read more

Perl References/Dereferences

An enumerated or comma-separated list always returns the last element in a scalar context. An array reference is created by either: * the [ ] operator around a list * the operator in front of a list variable (@) A hash reference is created by either: * the { } operator around a list (of pairs) * the operator in front of a hash variable (%) Example Code: ############################################################# references.pl #!/usr/bin/perl -w use strict; use Data::Dumper; my @a = qw( hello there you guys ); # a regular array my %grade = qw( A 4.0 B 3.1 C 2.0 D […]

Read more