Super User Asked on February 4, 2021
Having this perl:
#!/usr/bin/perl -w
use Cwd qw[abs_path];
use autodie;
opendir C, "c:\";
@ar = map { abs_path($_) } readdir(C) or die $!;
print $ar[0];
I am trying to print an absolute path of first file from c:
, but an error:
Use of uninitialized value $ar[0] in print at C:UsersppastOneDrivePlochab.pl line 5.
Does anyone know, what is wrong?
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP