Re: quick perl question

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 21 Oct 2003 11:44:13 -0400, Jake McHenry wrote:

> 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?

chomp $date;

Btw, your message to this mailing-list is not a reply to the message
"Howto: Quicker web browsing, slower FTP traffic?".

> References: <6.0.0.22.0.20031021092906.024e9b98@xxxxxxxxxxxxx>

Next time please compose a _new_ message instead of replying to an
arbitrary message. That way your message doesn't disturb the
threading.

- -- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/lV5F0iMVcrivHFQRAh2+AJ46Y25AAyxkPqqEwCYiHAgP9E37NACfcNhC
GKli7RkDGN0L07Ia3kNRPJI=
=fSyE
-----END PGP SIGNATURE-----


-- 
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