The problem is that I don't seem to get a value from this. Sure, pwd does its thing, but "dirgets" does not. What am I messing up?#!/usr/bin/env perl sub dirgets() { my $dirval; system(pwd); $dirval = <STDOUT>; return($dirval); } my $name; $name = &dirgets();
In reply to use of <STDOUT> by PerlZealot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |