Perl: the Markov chain saw | |
PerlMonks |
Re: Writing current working directory to $variableby athomason (Curate) |
on Aug 27, 2000 at 03:41 UTC ( [id://29839]=note: print w/replies, xml ) | Need Help?? |
/(\d\d\d\d.\d\d\d\d)/ will match on "/home/limo/Perl/2000/0827/test_dir", but $1 won't have what you want (the . token matches any single character except \n, but it doesn't replace it with a period). Try this.
In Section
Seekers of Perl Wisdom
|
|