Microsoft
Software
Hardware
Network
Question : perl, using parse_line to delimit by comma, but keep the double-quotes
I use parse_line to split a string based on comma (I don't have CSV library and do not want to install it), but I want to keep the double quote.
use Text::ParseWords;
my $mystring = "one, two, \"three\", four";
my $delim_char = ",";
my $delim_string = "\\s*$delim_char\\s*";
my @fields = &parse_line($delim_char,0,
$mystring)
;
print join("\n",@fields),"\n";
Answer : perl, using parse_line to delimit by comma, but keep the double-quotes
Put a 1 for the $keep variable (2nd parameter)
man Text::ParseWords explains the syntax of the below
my @fields = &parse_line($delim_char,1,
$mystring)
;
Random Solutions
Replacing Keyboard on Toshiba Portege A600
Some email bypassing spam filter
comment SP
Ho to customize flash paper interface
Delete shortcut from all users desktop via script
dlookup error in access
PowerEdge 1950 - Hard Drive Upgrade - Server 2003 R2
indexed table in snmp trap
Can I use the SendKeys command in Excel VBA to interact with other applications other that Microsoft Office?
SAP RFC returning Invalid Data Type