in reply to Re: Rewrite in a more compact way
in thread Rewrite in a more compact way
I like to use parens in these cases to have something to pin the ; to. And if there are other joins, splits etc. it stops perl getting confused about where lists start and end.my $str = sprintf( q{CALL DB_PROC_FOO(%s)}, join( q{,}, (q{?}) x $n, ), );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Rewrite in a more compact way
by BrowserUk (Patriarch) on Nov 27, 2008 at 16:40 UTC | |
by Narveson (Chaplain) on Nov 28, 2008 at 04:47 UTC | |
by BrowserUk (Patriarch) on Nov 28, 2008 at 12:25 UTC |