in reply to text has single and double quotes and anychar. how to assign this text?
See the here-doc notation in Quote and Quote like Operators:
my $string = <<'END';# only END alone on a line can be the delimiter I can say whatever I want here, even ' " \ $var @Hi, or END END print $string;
Edit: note that a final "\n" will be included, so you may have to chomp your string to remove it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: text has single and double quotes and anychar. how to assign this text?
by rsFalse (Chaplain) on Aug 20, 2015 at 13:27 UTC | |
by GotToBTru (Prior) on Aug 20, 2015 at 13:55 UTC | |
by Eily (Monsignor) on Aug 20, 2015 at 13:56 UTC |