in reply to Error "Use of uninitialized value $lines[0] in substitution (s///) at " with below Code
Output:opendir my $dir, './var'; say join "\n", readdir $dir;
Reading this stuff yields nothing:fonts.tar.gz . c ..
Produces empty line and 0.open my $file, '<', '.'; my @lines = <$file>; say join "\n", @lines; say scalar @lines;
Use glob instead...
|
|---|