in reply to Strings with undefined variables?
I have used the substitution method before with good success, wrapping keywords like this: %keyword%
However, you might also consider using function calls...
#! /usr/bin/env perl use strict; use warnings; use 5.10.0; sub url { 'http://something.com/api_stuff/' . shift } say 'POST->' . url('1234');
πάντων χρημάτων μέτρον έστιν άνθρωπος.
|
|---|