Rob van der Woude's Scripting Pages

Perl Examples

 

0 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

 

💾 Click the floppy disk or package (for third party scripts) 📦 icons to download the ZIPped sources

Click the question mark icons to view the MD5 and SHA1 checksums for the ZIPped sources

 

Perl examples
💾 Name Description Last modified Also available in Remarks
DOS
batch
NT
batch
JScript KiXtart Power
Shell
Rexx VB
Script
💾 allhelp Display help for the Bourne Shell's internal commands and reserved words, and the CoreUtils, and create a HTML file with this help 2015-06-16   NT         V Perl version for Linux only, NT and VBScript versions for Windows only.
When opening the generated HTML file in the default browser, the script may generate warning messages (known issue with Firefox).
Tested on Ubuntu 14.10 NL (Linux 3.16.0) & 15.04 EN (Linux 3.19.0) only.
💾 BIOS Display some basic BIOS properties 2006-09-11   NT   K PS R V Created using my WMI Code Generator
💾 BIOSDate Display BIOS date 2003-12-12 D NT       R   Original idea by ComputerHope.
Perl, batch and Rexx versions all use DEBUG.EXE to read info from BIOS.
💾 BIOSInfo Display BIOS manufacturer & date 2003-12-12       K   R   Perl, KiXtart and Rexx versions use DEBUG.EXE to read info from BIOS.
VBScript and KiXtart versions created using Microsoft's Scriptomatic tool.
💾 BkAllDrv Backup all Windows 2000 drivers 2004-02-14   NT   K   R   This scripts requires Microsoft's DEVCON utility.
Rexx versions to backup only modem and video drivers available too.
💾 Choice A limited port of MS-DOS' CHOICE command 2003-10-03   NT   K   R   More info on the CHOICE command
Convert to and from Unix style text files
💾 CrLf Replace orphaned CR or LF with CR/LF pairs 2003-03-25           R   CR = Carriage Return, LF = Line Feed
💾 CrLf2Lf Replace CR/LF pairs with LF's only 2003-03-25           R  
💾 DblCr2Cr Replace double CR/LF pairs with single pairs 2003-03-28           R  
💾 Cut "Cut" substrings from standard input 2003-03-23           R   Rexx version also available for OS/2.
Explained (a little) on my Unix ports page.
💾 Dec2Hex Convert a decimal number to 8 digit hexadecimal 2002-11-13   NT   K   R V  
💾 DefPRN2K Display default printer for Windows 2000 2003-04-08   NT J K   R V JScript & VBScript versions are for NT 4/2000/XP.
Other versions are for Windows 2000 (and maybe XP, not tested).
💾 Easter Show date of Easter for the specified year 2003-01-14   NT J K   R V Based on the instructions found at Simon Kershaw's KEEPING THE FEAST
💾 False Port of Unix' "false" command 2003-04-01       K   R   See also matching True
💾 FaR Find And Replace substrings in a string 2003-04-13       K   R   KiXtart version is accompanied by FaR.bat helper file
💾 GetPorts Display port addresses for serial and parallel ports 2003-01-12 D NT       R   Perl, Rexx and batch versions all use DEBUG.EXE
💾 GetRes Show screen resolution 2006-09-11   NT   K PS R V Created using my WMI Code Generator.
Rexx version is for OS/2, use WMIGen to generate Object Rexx version for Windows.
💾 KeyLocks Return the status of the CapsLock, NumLock and ScrollLock keys 2007-12-01   NT         V  
💾 LeapYear Check if the specified year is a leap year 2003-01-14 D NT J K PS R V MS-DOS version uses BATCHMAN by Michael Mefford
💾 MidiTitl Display title(s) of specified MIDI file(s) 2004-01-21   NT            
💾 Obscure Obscure an URL by converting its host name part to a decimal IP address and by optionally adding a fake logon name 2003-12-13   NT       R   Browser security settings may block the use of decimal IP addresses
💾 PrintPDF Print a list of specified PDF files 2003-04-30   NT   K   R V  
💾 Random Display a random (integer) number between 1 and 100 2001-09-24 D NT J K   R V  
💾 ReadINI Read a value from an INI file 2005-03-05   NT   K   R V Batch version may fail on "special" characters like & | < > and parenthesis
💾 ReadReg Read a value from the registry 2003-04-05   NT   K   R V Batch version may fail on "special" characters like & | < > and parenthesis
📦 N/A Ren_ext Rename files using regular expressions                 Written by seth
💾 SortDate Display the current date in YYYYMMDD format (for sorting purposes) 2001-09-03 D NT J K PS R V MS-DOS version uses BATCHMAN by Michael Mefford
💾 SortTime Display the current time in HHmmSS format (for sorting purposes) 2001-09-03 D NT J K   R V MS-DOS version uses BATCHMAN by Michael Mefford
💾 StarDate Convert current date & time to stardate 2003-01-26   NT   K   R V Based on an algorithm found on The StarTrek Gallery
💾 Tee Display standard input on screen and redirect it to a file simultaneously 2003-03-24   NT       R   Explained (a little) on my Unix ports page
💾 Tomorrow Display tomorrow's date ("sorted") 2002-12-29     J K PS R V  
💾 True Port of Unix' "true" command 2003-04-01       K   R   See also matching False
💾 VideoROM Display video adapter manufacturer info read from video ROM 2003-03-02 D NT   K   R V Perl, batch and Rexx versions use DEBUG.EXE (original idea by ComputerHope).
VBScript and KiXtart versions created using Microsoft's Scriptomatic tool.
💾 Week Display the current week number 2001-08-21 D NT J K PS R V DOS batch file uses WeekOfYr.exe.
💾 Which Locate the specified program file 2012-06-12 D NT   K PS R   Rexx version also available for OS/2.
Explained (a little) on my Unix ports page.
💾   WMIGen.exe Generate Batch, C#, Delphi, F#, JScript, Java, KiXtart, Lua, Object Pascal, Object Rexx, Perl, PHP, PowerShell, Python, Ruby, Tcl, VB .NET and VBScript code for WMI queries 2023-02-25             HTA  
💾 Yesterday Display yesterday's date ("sorted") 2001-09-03   NT J K PS R V  

 

0 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

 


page last modified: 2023-02-25; loaded in 0.0317 seconds