It worked correctly on my system... after I fixed the type "splint" -> "split".
Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. C:\>cd \test C:\test>perl argtest.pl \\celmft-fpsdev:ODBCOPC.exe Undefined subroutine &main::splint called at argtest.pl line 2. C:\test>perl argtest.pl \\celmft-fpsdev:ODBCOPC.exe The machine is \\celmft-fpsdev and the process is ODBCOPC.exe C:\test>perl -v This is perl, v5.6.1 built for MSWin32-x86-multi-thread (with 1 registered patch, see perl -V for more detail) Copyright 1987-2001, Larry Wall Binary build 630 provided by ActiveState Tool Corp. http://www.ActiveState.com Built 20:29:41 Oct 31 2001 Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using `man perl' or `perldoc perl'. If you have access to the Internet, point your browser at http://www.perl.com/, the Perl Home Page. C:\test>exit > -----Original Message----- > From: The Realist's Mail [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 14, 2002 04:51 PM > To: [EMAIL PROTECTED] > Subject: $ARGV[0] won't work in Perl 5.6 > > Can someone tell me why this code won't work in Perl 5.6 > > $param = $ARGV[0]; > @array = splint(/:/, $param); > $Machine = @array[0]; > $process = @array[1]; > print "The machine is $Machine and the process is $process \n"; > exit; > > I get returned. > > The machine is and the process is . > > In 5.5 I get returned > > The machine is \\celmfg-fpsdev <file://\\celmfg-fpsdev> and the process is > ODBCOPC.exe. > > I run the program the same way in both cases. > > argtest.pl \\celmfg-fpsdev:ODBCOPC.exe > <file://\\celmfg-fpsdev:ODBCOPC.exe> > > What is up...has this command been replaced ?. > Please reply to [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > > James W Frazier > CIO Pervasive Technologies > << File: tech.gif >> _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
