Gunnar Hjalmarsson wrote:
Brian Volk wrote:
while () {
You want to remove the newline character:
chomp;
print "$main_url\n";
s/1804/KCITEM/ and print "$main_url\n";
You probably mean:
$main_url =~ s/1804/$_/ and print "$main_url\n";
Hmm.. That suggestion wasn't very clever, I think. $ma
Brian Volk wrote:
I have a .txt file which contains item numbers like so..
1234
1245
1278
1240
etc.
I am trying to print the entire url, $main_url after substituting the item
number in the .txt file... I'm having a little trouble w/ my loop... Below
is the script.
#!/usr/bin/perl -w
use stric
Hi All,
I have a .txt file which contains item numbers like so..
1234
1245
1278
1240
etc.
I am trying to print the entire url, $main_url after substituting the item
number in the .txt file... I'm having a little trouble w/ my loop... Below
is the script.
#!/usr/bin/perl -w
use strict;
my