Ronnie has asked for the wisdom of the Perl Monks concerning the following question:
This doesn't work regardless of whether the parameter is in single or double quotes or is not in fact quoted! I'm baffled does anyone have a solution to this? Thanks Ronnie#!/usr/bin/perl -w # use strict ; # my $line = undef ; my @lines = () ; # my ($test) = @ARGV ; # #my $test = "x\ny\nz" ; print "\nTest :: $test\n" ; my @foo = split /\n/, $test; foreach $line (@foo) { print "\n$line\n" ; } # print "\n" ; #
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Split/Parameter Problem
by jZed (Prior) on Jan 06, 2005 at 17:02 UTC | |
|
Re: Split/Parameter Problem
by legato (Monk) on Jan 06, 2005 at 19:15 UTC | |
by sgifford (Prior) on Jan 06, 2005 at 19:38 UTC | |
|
Re: Split/Parameter Problem
by mifflin (Curate) on Jan 06, 2005 at 16:57 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |