| 1 | package Lab::Moose::Catfile; | ||||||||||
| 2 | 27 | $Lab::Moose::Catfile::VERSION = '3.881'; | |||||||||
| 3 | 27 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 27 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | # ABSTRACT: Export custom catfile which avoids backslashes | ||||||||||
| 7 | |||||||||||
| 8 | # PDL::Graphics::Gnuplot <= 2.011 cannot handle backslashes on windows. | ||||||||||
| 9 | |||||||||||
| 10 | |||||||||||
| 11 | 27 | our @ISA = qw(Exporter); | |||||||||
| 12 | 27 | our @EXPORT = qw/our_catfile/; | |||||||||
| 13 | |||||||||||
| 14 | sub our_catfile { | ||||||||||
| 15 | 380 | ▶ | if ( @_ == 0 ) { | ||||||||
|
Subroutine
our_catfile: called CC=2 SCAR=8.1
Pod
undocumented
Branch: 1 branch
| |||||||||||
| 16 | 0 | return; | |||||||||
| 17 | } | ||||||||||
| 18 | 380 | return join( '/', @_ ); | |||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | 27 | 1; | |||||||||
| 22 | |||||||||||
| 23 | __END__ | ||||||||||
| 24 | |||||||||||
| 25 | =pod | ||||||||||
| 26 | |||||||||||
| 27 | =encoding UTF-8 | ||||||||||
| 28 | |||||||||||
| 29 | =head1 NAME | ||||||||||
| 30 | |||||||||||
| 31 | Lab::Moose::Catfile - Export custom catfile which avoids backslashes | ||||||||||
| 32 | |||||||||||
| 33 | =head1 VERSION | ||||||||||
| 34 | |||||||||||
| 35 | version 3.881 | ||||||||||
| 36 | |||||||||||
| 37 | =head1 SYNOPSIS | ||||||||||
| 38 | |||||||||||
| 39 | use Lab::Moose::Catfile; | ||||||||||
| 40 | my $dir = our_catfile($dir1, $dir2, $basename); | ||||||||||
| 41 | |||||||||||
| 42 | =head1 COPYRIGHT AND LICENSE | ||||||||||
| 43 | |||||||||||
| 44 | This software is copyright (c) 2023 by the Lab::Measurement team; in detail: | ||||||||||
| 45 | |||||||||||
| 46 | Copyright 2018 Simon Reinhardt | ||||||||||
| 47 | |||||||||||
| 48 | |||||||||||
| 49 | This is free software; you can redistribute it and/or modify it under | ||||||||||
| 50 | the same terms as the Perl 5 programming language system itself. | ||||||||||
| 51 | |||||||||||
| 52 | =cut | ||||||||||