diff options
author | Elvin Aslanov <rwp.primary@gmail.com> | 2022-08-30 11:16:02 +0400 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2022-08-30 09:33:22 -0600 |
commit | 7b88a34f3abd2662f6c449391320ac1f582b4043 (patch) | |
tree | bdd08227957f60606a77abeccb5299549c376346 /dist/PathTools | |
parent | 047c4f33756612ef7efae41cb4efca52f800787a (diff) | |
download | perl-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.pm | 6 |
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 |