And you can use the Dump method so the dump shows the actual variable name instead of $VAR1:
#!/usr/bin/perl use strict; use warnings; use Data::Dumper; use Cwd; my $dir = getcwd(); print Data::Dumper->Dump([$dir],[qw(*dir)]),"\n";
Update: as well as what jkahn said, of course =]
In reply to Re: Re: system pwd
by crouchingpenguin
in thread system pwd
by vbrtrmn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |