| 1 | package Gnuplot::Builder::Util; | ||||||||||
| 2 | 57 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 57 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 57 | ▶ | use Exporter qw(import); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 57 | our @EXPORT_OK = qw(quote_gnuplot_str); | |||||||||
| 7 | |||||||||||
| 8 | sub quote_gnuplot_str { | ||||||||||
| 9 | 139 | ▶ | my ($str) = @_; | ||||||||
|
Subroutine
quote_gnuplot_str: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||
| 10 | 139 | ▶ | return undef if !defined($str); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 11 | 131 | $str = "$str"; ## explicit stringification | |||||||||
| 12 | 131 | $str =~ s/'/''/g; | |||||||||
| 13 | 131 | return qq{'$str'}; | |||||||||
| 14 | } | ||||||||||
| 15 | |||||||||||
| 16 | 57 | 1; | |||||||||