Option #1 )
my $output = <
EOF
;
chomp $output;
print $output;
$num_clients = ;
Option 2 )
print qq[
Select the number of clients to run for this SLT:
1) 2000
2) 1500
3) 1300
4) 500
=> ];
$num_clients = ;
---
As it is, it should work. The error is not always on the line that it is
complaining about. Syntax errors such as missing " of ) or } etc. will cause
perl to report errors further down the script. Did you check the rest of the
script? Or, if you want to send your script we can look at it.
|-
Both split(/\_/, $var) & split ('_', $var) should work. Can we see the rest
of the script, to see what else could be wrong?
|-Original Message-
|From: eric wang [mailto:[EMAIL PROTECTED]]
|Sent: Friday, September 07, 2001 3:39 PM
|To: [EMAIL PROTECTED]
|Subject: split on _ and on -
|
|
why not just do
$somestring =~ s!>!)!g;
that will replace every ">" with a ")". This way you do not even have to
worry about $stringlength.
> -Original Message-
> From: Dan [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 07, 2001 11:15 AM
> To: [EMAIL PROTECTED]
> Subject: general
It checks for the existence of a value and then increments if there is one.
> -Original Message-
> From: Cohan, Drew [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 07, 2001 10:46 AM
> To: [EMAIL PROTECTED]
> Subject: order of operations
>
>
> Hi,
>
> I don't understand somethin
You could try something like this:
###
use strict
@a = qw(10.000 100.00 100.0 1000.000);
$a = $b = "";
foreach $val (@a) {
($a,$b) = split(/\./,$val);
write;
}
format STDOUT =
@>.@<
$a,$b
.
###
> -Original Message-
This will give you the form. $script is the name of the cgi script that will
actually do the uploading.
use CGI;
$query = new CGI;
print $query->start_multipart_form(POST,"$script",);
print 'Enter the file to be uploaded: ',"\n";
print $query->filefield(-name=>"FILE");
print '',"
> I have solved my earlier question.
>
> Thanks to those who responded.
>
> the problem was:
> I have an input file which contains n rows with 3 items in each row:
> 1 2 3
> a b c
> 4 5 6
>
> The script output needs to take the items from each row and print them
> as:
> "v1=1, v2=2, v3=3"
> "v1
Solaris is psrinfo.
Patrick J Connolly
Managed Security Specialist
XO Communications (Concentric Network)
Work: (314) 506-3479
Cell: (314) 486-8406
Pager: (800) 652-1203
-Original Message-
From: Rogers, Gary (AP- Server Adminstrator)
[mailto:[EMAIL PROTECTED]]
Sent: Monday, August 27, 2
This is going off of two assumptions, 1) that you want the task number to be
unique and 2) the fields are supposed to be tab delimited. If you want to
remove the dups from a different column then make that column as the key to
the hash. As for which fields, you can add and remove any column from t
10 matches
Mail list logo