Ask a Question related to PERL Beginners, Design and Development.
-
Luke Bakken #1
RE: Is it a perl Bug?
> Tom Franklyn <tomfranklyn@hotmail.com> wrote:From: "Tom Franklyn"
Never use $a and $b as variables in Perl outside of a sort subroutine.> Subject: Is it a perl Bug?
> Date: Wed, 04 Feb 2004 12:43:56 +0200
>
> Dear all,
>
> I've following code :
>
> ==========
> #!/usr/bin/perl
>
> my $a = "ab:cd:ef";
> my @b = split(/:/,$a);
> print ("@b\n");
>
> my @c = ('/:/', $a);
> my @d = split(@c);
> print ("@d\n");
> ===========
> Whats wrong with my code?
> why @b and @d give different output?
They are used by the sort function.
Secondly, study perldoc -f split, especially the arguments:
split /PATTERN/,EXPR,LIMIT
split /PATTERN/,EXPR
split /PATTERN/
split
It's not a perl bug.
Luke
Luke Bakken Guest
-
Off Topic: Active Perl Native Windows / cygwin perl
I have both activestate windows native perl installed and the default cygwin perl. How can I have the cygwin shell use the windows perl rather... -
Control a non-perl image viewer from perl script
Below is a (non-finished) script that trys to run a linux viewer called eog (eye of gnome) in a script that will eventually allow me to power thru... -
Re : Installing CPAN Perl Modules with Activestate Perl 5. v5.8
Hi, In the process of trying to get perl modules installed, I downloaded over 300 Activestate specific perl modules and they work fine (of the ones... -
Effeciency question - perl scripts v's perl exe's
Max Adams wrote: The only existing Perl compiler is part of perl. Anything else is just a packager that puts a perl, required modules, and the... -
Designing Interfaces with Perl and Perl APIs
Hi, I am a long date perl programmer, and from time to time, I am having the same trouble: - To design interfaces for a self contained...



Reply With Quote

