quick perl question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi everyone, this is a pretty simple question I believe.. but I can't seem
to get it...

I have a perl script that does a system call to get the date.... everything
works fine, but the returned date has a line return character and I can't
get rid of it... here's my perl script..

$date = `/bin/date +%Y%m%d`;

I've tried system("/bin/date ... ");
and exec("/bin/date....");

all return the date with the line character... how can I get rid of it?


Thanks,
Jake


-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux