Perl quicky..

Caporegime
Joined
18 Oct 2002
Posts
29,493
Location
Back in East London
Can anyone please explain the assignment operator and -s combo in the below line please? :) (i.e. what does it do?)

Code:
my $size=-s $source_file;

Thanks in advance!
 
Dj_Jestar said:
Can anyone please explain the assignment operator and -s combo in the below line please? :) (i.e. what does it do?)

Code:
my $size=-s $source_file;

Thanks in advance!

Takes the size in bytes of the file stored in $source_file and whacks it in $size.
 
Back
Top Bottom