So how does one maintain the integrity of the backslashes? I am not sure what you mean. Abbreviated Script:
#!/usr/bin/perl -w use warnings; use strict; my @search = ("/<ID>(.*?)<\/ID>/", # ID "/<TimeStamp>(.*?)<\/TimeStamp>/", # Time Stamp "/<IP_Address>(.*?)<\/IP_Address>/", # IP Address "/<Title>(.*?)<\/Title>/", # Title "/<Complainant><Entity>(.*?)<\/Entity>/", # Reporting Ent +ity "/<Contact>(.*?)<\/Contact>/", # Reporting Entity Con +tact "/<Address>(.*?)<\/Address>/", # Reporting Entity Add +ress "/<\/Phone><Email>(.*?)<\/Email>/"); # Reporting Entity E +mail Address print @search;
dpich@m6400-vb:~/Documents$ perl 2time.pl /<ID>(.*?)</ID>//<TimeStamp>(.*?)</TimeStamp>//<IP_Address>(.*?)</IP_A +ddress>//<Title>(.*?)</Title>//<Complainant><Entity>(.*?)</Entity>//< +Contact>(.*?)</Contact>//<Address>(.*?)</Address>//</Phone><Email>(.* +?)</Email>/dpich@m6400-vb:~/Documents$
In reply to Re^2: I don't understand why I'm getting an "Use of uninitialized value" error
by TheBigAmbulance
in thread I don't understand why I'm getting an "Use of uninitialized value" error
by TheBigAmbulance
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |