19 Jan 2007 at 12:02 #1 Dj_Jestar Dj_Jestar 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!
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!
19 Jan 2007 at 12:49 #2 growse growse Soldato Joined 18 Oct 2002 Posts 7,139 Location Ironing 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! Click to expand... Takes the size in bytes of the file stored in $source_file and whacks it in $size.
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! Click to expand... Takes the size in bytes of the file stored in $source_file and whacks it in $size.
19 Jan 2007 at 12:51 #3 Dj_Jestar Dj_Jestar Caporegime OP Joined 18 Oct 2002 Posts 29,493 Location Back in East London tyvm!