#!/usr/bin/perl # Demonstrate different loops for use with string substitutions use strict; use warnings; # use diagnostics; my $NewRev = "\tabc\tkis17.1.33en_12345.exe\n\n"; $NewRev = "\tabc\tkis17.1.33en_12345.exe\n"; #modified print "run on line: \$NewRev = <$NewRev>\n\n"; #not modified $NewRev = "\tabc\tkis17.1.33en_12345.exe\n\n"; $NewRev = "\tabc\tkis17.1.33en_12345.exe\n\n"; __END__ Need __END__ not just END But of course __END__ is optional, just use it like this when you want to put something in the code like an example printout Prints: for at the end: $NewRev = <17.1.33.12345 run on line: $RedirectUrl = <17.1.33.12345 run on line: $NewRev = < abc kis17.1.33en_12345.exe for at the start: $NewRev = <17.1.3312345 for at the start: $NewRev = <17.1.3312345