[ale] System in Perl
Geoffrey
lists at serioustechnology.com
Fri Jul 27 08:18:17 EDT 2007
Terry Bailey wrote:
> Hi,
>
> Is there any way to place the results of the following into a Perl
> variable without opening and closing a file? In addition, this
> would be used in Javascript function.
>
> system("stat test | grep -i access | grep -v Uid | cut -b8-27");
Try:
my $var = `stat test | grep -i access | grep -v Uid | cut -b8-27';
There are better tools available to you in perl to get this info though.
>
> Thank you,
>
> Terry Bailey
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
>
--
Until later, Geoffrey
Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety.
- Benjamin Franklin
More information about the Ale
mailing list