paisani has asked for the wisdom of the Perl Monks concerning the following question:
OUTPUT:my $sql = "'XXXX-ax1-d.ett.amrs.bankofamerica.com','UAT','AMRS','AMS', +'','YYYY','ZZZZ',,,,"; print "$sql\n"; $sql =~ s/,,/,NULL,/g; print "$sql\n"; $sql =~ s/,,/,NULL,/g; ## I dont know why this is needed twice print "$sql\n";
$ ./test.pl 'XXXX-ax1-d.ett.amrs.bankofamerica.com','UAT','AMRS','AMS','','YYYY',' +ZZZZ',,,, 'XXXX-ax1-d.ett.amrs.bankofamerica.com','UAT','AMRS','AMS','','YYYY',' +ZZZZ',NULL,,NULL, 'XXXX-ax1-d.ett.amrs.bankofamerica.com','UAT','AMRS','AMS','','YYYY',' +ZZZZ',NULL,NULL,NULL,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Global in RE not working as expected?
by AnomalousMonk (Archbishop) on Jan 24, 2018 at 15:50 UTC | |
|
Re: Global in RE not working as expected?
by hippo (Archbishop) on Jan 24, 2018 at 15:51 UTC | |
|
Re: Global in RE not working as expected?
by choroba (Cardinal) on Jan 24, 2018 at 15:52 UTC | |
|
Re: Global in RE not working as expected?
by haukex (Archbishop) on Jan 24, 2018 at 15:53 UTC | |
|
Re: Global in RE not working as expected?
by paisani (Acolyte) on Jan 24, 2018 at 16:07 UTC | |
by AnomalousMonk (Archbishop) on Jan 24, 2018 at 18:06 UTC | |
by paisani (Acolyte) on Jan 24, 2018 at 19:37 UTC | |
by pryrt (Abbot) on Jan 24, 2018 at 19:48 UTC |