@@ -360,9 +360,6 @@ =head2 Advanced Interpolation Control
360
360
expressed in a short form, for instance q:s// can be expressed as
361
361
qs//.
362
362
363
- :0 :raw No escapes at all (unless otherwise adverbed)
364
- :1 :single Interpolate \\, \q and \' (or whatever)
365
- :2 :double Interpolate all the following
366
363
:s :scalar Interpolate $ vars
367
364
:a :array Interpolate @ vars
368
365
:h :hash Interpolate % vars
@@ -375,22 +372,16 @@ =head2 Advanced Interpolation Control
375
372
:t :to Interpret result as heredoc terminator
376
373
377
374
# Raw quoting: no escaping at all (unless otherwise adverbed)
378
- say q:raw/:raw (no interpolation) even backslash has no special meaning: \\ \/;
379
- say q:0/:0 (no interpolation) even backslash has no special meaning: \\ \/;
380
- say q0/0 (no interpolation) even backslash has no special meaning: \\ \/;
375
+ say Q/(no interpolation) even backslash has no special meaning: \\ \/;
381
376
382
377
# Single quoting:
383
378
say 'Lots of options for single quotes';
384
379
say q/Lots of options for single quotes/;
385
- say q:1/Lots of options for single quotes/;
386
- say q1/Lots of options for single quotes/;
387
380
388
381
# Double quoting: interpolates scalars, arrays, hashes, functions,
389
382
# closures, and backslash codes
390
383
say "Plenty of ways to double quote too";
391
384
say qq/Plenty of ways to double quote too/;
392
- say q:2/Plenty of ways to double quote too/;
393
- say q2/Plenty of ways to double quote too/;
394
385
395
386
# Interpolate scalars only:
396
387
say q:s/The quick brown $var1 jumps over the lazy dog/;
@@ -411,8 +402,8 @@ =head2 Advanced Interpolation Control
411
402
say qf/The quick brown &get_animal('quick') jumps.../;
412
403
413
404
# interpolate closures only:
414
- say q:c/The quick brown { return 'fox'; } jumps.../;
415
- say qc/The quick brown { return 'fox'; } jumps.../;
405
+ say q:c/The quick brown { 'fox'; } jumps.../;
406
+ say qc/The quick brown { 'fox'; } jumps.../;
416
407
417
408
# interpolate backslash codes only:
418
409
say q:b/The quick brown fox\n\tJumps over the lazy dog/;
0 commit comments