First with $_ then without
use Path::Tiny qw/ cwd path tempfile /; ## in cwd path( "temp$_" )->spew("THIS IS DATA") for 1 .. 5; ## in $TMP directory tempfile( 'tempjamesXXXX' )->spew("THIS IS DATA") for 1 .. 5;
In reply to Re^3: foreach loop and creating files with "$_" (path tiny spew)
by Anonymous Monk
in thread foreach loop and creating files with "$_"
by james28909
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |