in reply to Interpolating a string into list context.
Now I'll go away and right 100 times, "I will not execute my data. I will not execute my data. I will not...".#!/usr/bin/perl use warnings; use strict; my $str = q("string with a comma,","and some spaces", "three"); my @array; eval <<"EVILEVAL"; \@array = ( $str ); EVILEVAL print "ELT: $_\n" for @array;
More seriously, the CSV approaches people have mentioned are probably the way to go.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Interpolating a string into list context.
by hangon (Deacon) on Nov 14, 2007 at 03:53 UTC | |
by jbert (Priest) on Nov 14, 2007 at 09:33 UTC |