[Chicago-talk] perl touch

Shawn Carroll shawn.c.carroll at gmail.com
Tue May 9 11:25:07 PDT 2006


open my $fh, '<', $filename;
print $fh "";
close $fh;

On 5/5/06, tiger peng <tigerpeng2001 at yahoo.com> wrote:
> Hello,
>
> Can you help me to "touch" a file in perl without
> using backticks? I do not feel comfotable with
> backticks without catching its output.
>
> I know utime only works for the files already exist.
>
> Ge
> _______________________________________________
> Chicago-talk mailing list
> Chicago-talk at pm.org
> http://mail.pm.org/mailman/listinfo/chicago-talk
>


--
shawn.c.carroll at gmail.com
Perl Programmer
Soccer Referee


More information about the Chicago-talk mailing list