summaryrefslogtreecommitdiff
path: root/dist/PathTools
diff options
context:
space:
mode:
authorElvin Aslanov <rwp.primary@gmail.com>2022-08-30 11:16:02 +0400
committerKarl Williamson <khw@cpan.org>2022-08-30 09:33:22 -0600
commit7b88a34f3abd2662f6c449391320ac1f582b4043 (patch)
treebdd08227957f60606a77abeccb5299549c376346 /dist/PathTools
parent047c4f33756612ef7efae41cb4efca52f800787a (diff)
downloadperl-7b88a34f3abd2662f6c449391320ac1f582b4043.tar.gz
Update File::Spec synopsis
Add `my` to examples for better practice.
Diffstat (limited to 'dist/PathTools')
-rw-r--r--dist/PathTools/lib/File/Spec.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/dist/PathTools/lib/File/Spec.pm b/dist/PathTools/lib/File/Spec.pm
index 683a2470ff..beb3b91d80 100644
--- a/dist/PathTools/lib/File/Spec.pm
+++ b/dist/PathTools/lib/File/Spec.pm
@@ -2,7 +2,7 @@ package File::Spec;
use strict;
-our $VERSION = '3.86';
+our $VERSION = '3.87';
$VERSION =~ tr/_//d;
my %module = (
@@ -33,13 +33,13 @@ File::Spec - portably perform operations on file names
use File::Spec;
- $x=File::Spec->catfile('a', 'b', 'c');
+ my $x = File::Spec->catfile('a', 'b', 'c');
which returns 'a/b/c' under Unix. Or:
use File::Spec::Functions;
- $x = catfile('a', 'b', 'c');
+ my $x = catfile('a', 'b', 'c');
=head1 DESCRIPTION