Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: New to me: What does $var = -s 'file' do?

by stevieb (Canon)
on Sep 05, 2018 at 15:40 UTC ( #1221778=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
    say -s 'empty.txt';
    say -z 'size.txt';
    say -z 'empty.txt';
    
  2. or download this
    8 # -s, 8 bytes
    0 # -s, empty file
      # -z, file has bytes
    1 # -z, file is empty
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1221778]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2019-11-22 08:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (110 votes). Check out past polls.

    Notices?