in reply to Re^4: parsing CSV
in thread parsing CSV
my $page1 = <<http://url/website.com/thing?end_date=$END_DATE&start_da +te=$START_DATE&type=csv; 512.45,c100 6734, c200 5653.2, c300 PG1CSV
What you are (incorrectly) attempting is a here document. The proper form (I'm making some assumptions about just exactly what you want) is:
See also the discussion of here-docs in Quote and Quote-like Operators and Quote-Like Operators, both in perlop.my $page1 = <<PG1CSV; http://url/website.com/thing?end_date=$END_DATE&start_date=$START_DATE +&type=csv; 512.45,c100 6734, c200 5653.2, c300 PG1CSV
Update: Do you want semicolon at the end of the
http://url/website.com/thing?end_date...=csv;
string | sub-string?
Update 2: The here-doc with the label PG2CSV is also incorrect, and in the same way.
Give a man a fish: <%-{-{-{-<
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: parsing CSV
by younggrasshopper13 (Novice) on Oct 08, 2016 at 17:42 UTC | |
by marto (Cardinal) on Oct 08, 2016 at 17:57 UTC | |
by younggrasshopper13 (Novice) on Oct 08, 2016 at 21:43 UTC | |
by younggrasshopper13 (Novice) on Oct 09, 2016 at 03:03 UTC | |
by GrandFather (Saint) on Oct 09, 2016 at 03:34 UTC | |
|