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" ; #
In reply to Split/Parameter Problem by Ronnie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |