Skip to content

Commit

Permalink
Cleaned up some results for Andy Lester's commits.
Browse files Browse the repository at this point in the history
  • Loading branch information
chromatic committed Nov 14, 2011
1 parent 6fb65ba commit ee866a9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
6 changes: 2 additions & 4 deletions sections/chapter_00.pod
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,8 @@ Choroba, Paulo Custodio, Felipe, Shlomi Fish, Jeremiah Foster, Mark Fowler,
John Gabriele, Andrew Grangaard, Bruce Gray, Ask Bjørn Hansen, Tim Heaney,
Robert Hicks, Michael Hind, Mark Hindess, Yary Hluchan, Mike Huffman, Curtis
Jewell, Mohammed Arafat Kamaal, James E Keenan, Yuval Kogman, Jan Krynicky,
Jeff Lavallee, Moritz Lenz,
Andy Lester,
Jean-Baptiste Mazon, Josh McAdams, Gareth
McCaughan, John McNamara, Shawn M Moore, Alex Muntada, Carl Mäsak, Chris
Jeff Lavallee, Moritz Lenz, Andy Lester, Jean-Baptiste Mazon, Josh McAdams,
Gareth McCaughan, John McNamara, Shawn M Moore, Alex Muntada, Carl Mäsak, Chris
Niswander, Nelo Onyiah, Chas. Owens, ww from PerlMonks, Jess Robinson, Dave
Rolsky, Gabrielle Roth, Andrew Savige, Lorne Schachter, Dan Scott, Alexander
Scott-Johns, Phillip Smith, Christopher E. Stith, Mark A. Stratman, Bryan
Expand Down
14 changes: 8 additions & 6 deletions sections/files.pod
Original file line number Diff line number Diff line change
Expand Up @@ -539,9 +539,10 @@ X<C<-X>; file test operators>
X<operators; C<-X>>

Besides reading and writing files, you can also manipulate them as you would
directly from a command line or a file manager. The file test
operators, collectively called the C<-X> operators because they are a hyphen and a single letter,
examine file and directory attributes. For example, to test that a file exists:
directly from a command line or a file manager. The file test operators,
collectively called the C<-X> operators because they are a hyphen and a single
letter, examine file and directory attributes. For example, to test that a file
exists:

X<C<-e>; file exists operator>
X<operators; C<-e>>
Expand Down Expand Up @@ -599,16 +600,17 @@ takes two operands, the old name of the file and the new name:

X<C<File::Copy>>
X<builtins; C<unlink>>
X<builtins; C<delete>>
X<files; copying>
X<files; moving>
X<files; removing>
X<files; deleting>

There's no core builtin to copy a file, but the core C<File::Copy> module
provides both C<copy()> and C<move()> functions. Use the C<unlink> builtin to
remove one or more files. (The C<delete> builtin deletes an element from a hash, not a file from the filesystem.)
These functions and builtins all return true values
on success and set C<$!> on error.
remove one or more files. (The C<delete> builtin deletes an element from a
hash, not a file from the filesystem.) These functions and builtins all return
true values on success and set C<$!> on error.

=begin sidebar

Expand Down
3 changes: 2 additions & 1 deletion sections/missing_defaults.pod
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ warnings> for more details.
Combine C<use warnings> with C<use diagnostics> to receive expanded diagnostic
messages for each warning present in your programs. These expanded diagnostics
come from C<perldoc perldiag>. This behavior is useful when learning Perl.
Disable it in deployed software, since it produces verbose output.
Disable it before you deploy your program, because it produces verbose output
which might fill up your logs and expose too much information to users.

=end tip

Expand Down

0 comments on commit ee866a9

Please sign in to comment.