|
|||||||||||||||||||||||||||
Jeg er en klovn til regexp...
Jeg har nogle linier fra CVS hvor jeg skal have hugget
versionsnummeret ud en "cvs status"
my $cvsCheckCwd = join ("", runSilent ("cvs status $filename));
Herefter kan $cvsCheckCwd indeholde
File: README Status: Needs Patch
Working revision: 1.1 Sat Aug 31 22:03:36 2002
Repository revision: 1.2 /usr/local/CVSROOT/linuxbog/friheden/eksempler/README,v
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: (none)
---------
Hvordan får jeg de to versioner 1.1 og 1.2 ud i $myver
og $cvsver???
--
Peter Toft, Ph.D. sslug@sslug http://www.sslug.dk/~pto
So, if anybody wants to have hardware sent to them: don't call me, but
instead write your own unix operating system. It has worked every
time for me. (Linus Torvalds)
|
||||||||||||||
|
||||||||||||||