in reply to RegExp Delimiter
The same sort of rules apply to things like qr, qw, qq and qx. This gives you the freedom to choose something that won't collide.s/.../.../ s#...#...# s<...><...> s[...][...] s:...:...: s;...;...;
my $sql = qq{ SELECT id FROM ${table} };It works as far as I can tell, but my syntax hilighter goes nuts on it, closing the string at the first instance of '}', which makes sense. Perl seems to be extra careful about interpolating.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: RegExp Delimiter
by bart (Canon) on Sep 03, 2002 at 07:41 UTC | |
|
Re: Re: RegExp Delimiter
by demerphq (Chancellor) on Sep 03, 2002 at 10:18 UTC | |
by tadman (Prior) on Sep 03, 2002 at 10:58 UTC | |
|
Re: Re: RegExp Delimiter
by Anonymous Monk on Sep 03, 2002 at 11:09 UTC |