05-02-2008
You should post the error message you get. But if that is all the code, the problem appears to be a missing 's' preceeding the regexp:
($mod_server) = ($server =~ s/\+/\\+/g);
The above code will substitute the patten in $server and count the number of times the substitution is true and return that number to $mod_server. Maybe you mean to do this:
$mod_server = $server =~ s/\+/\\+/g;
Which will assign the new value of $server to $mod_server.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to find out Row which starts with, the user specified details to a script.
In general I know what command to be given.
awk '$0~/^Vi/' BReject
But I need to pass on $1 param of command line at the place of 'Vi'.
I tried with -v subst=$1
awk -v subst=$1 '$0~/^subst/' BReject
But it... (5 Replies)
Discussion started by: videsh77
5 Replies
2. UNIX for Dummies Questions & Answers
I need help with this:
Can any one tell me what does these below mean:
1. "\(.\).*") != '/'
2. sed 's+^\./++;s+/.*++'
3. sed "s+${f}/+ +
Thanks in advance (7 Replies)
Discussion started by: moe2266
7 Replies
3. Shell Programming and Scripting
HI
system.sysUpTime.0 : Timeticks: (1519411311) 175 days, 20:35:13.11
From the above output i need only 175days in a perl script..
Please Help (2 Replies)
Discussion started by: Harikrishna
2 Replies
4. Shell Programming and Scripting
Hello together,
Yesterday I have recieved the script in the forum which works well.
This script should insert in the previous line, the line that starts with ";".
I'd like this process to recur after any arbitrary sign unless there's a number as a sign at the beginning of a line.
Actual... (14 Replies)
Discussion started by: research3
14 Replies
5. Shell Programming and Scripting
Hello,
I have thousand of messages (HL7), I want to use awk to extract only the ones that have a particular value in pv1.18
Each record in the file is the whole HL7 message, ie. when I print $0 I get the whole message MSH EVN PID etc. ,there is an x0d between the segments.
I would like to use a... (3 Replies)
Discussion started by: gio001
3 Replies
6. Shell Programming and Scripting
Please let me understand this reg expression
(\s+')(.*)('\s+)(.)(.*)(\/.*)/)
i have doubt in the below 2.I'm not understanding why back-tick used?
(\s+') and ('\s+) (2 Replies)
Discussion started by: dll_fpga
2 Replies
7. Shell Programming and Scripting
./GEN_SCR.pl -f ${REP_PATH}/FUNCTIONAL/wide1c_1.0V/max/qor.rpt -o ${REP_PATH}/FUNCTIONAL/GEN2_wide1c_1.0V_max.csv
where GEN_SCR.pl is as below...i need to check whether max or min is coming in the argument to the script ...how to do this?
${REP_PATH}/FUNCTIONAL/wide1c_1.0V/max/qor.rpt ... (0 Replies)
Discussion started by: dll_fpga
0 Replies
8. Shell Programming and Scripting
how to uniquely match each of the words seperated by / in perl
${REP_PATH}/FUNCTIONAL/wide1c_1.0V/max/qor.rpt
https://www.unix.com/images/misc/progress.gif (5 Replies)
Discussion started by: dll_fpga
5 Replies
9. Shell Programming and Scripting
I want to make a REG Expression to validate the directory.
my dirsample is below:
/abc/abc/abc
abc/abc/abc
abc/abc/abc/
/abc/a bc/abc
/a bc/abc/abc
/abc/abc/a bc
/ abc/abc/abc
/abc/ abc/abc
/abc/.abc
/.abc/abc
/
//
/abc
/.abc
And my code is below:
grep -E '^\/(+\/?)+$' dirsample (4 Replies)
Discussion started by: franksunnn
4 Replies
10. Shell Programming and Scripting
Need your help in creating regular expression for particular set. let say I have given two dates 20130623 to 20140625.
I need to create regular for the dates which fall in between above two dates. (4 Replies)
Discussion started by: gvkumar25
4 Replies
LEARN ABOUT SUSE
net::ldap::message
Net::LDAP::Message(3) User Contributed Perl Documentation Net::LDAP::Message(3)
NAME
Net::LDAP::Message - Message response from LDAP server
SYNOPSIS
use Net::LDAP;
DESCRIPTION
Net::LDAP::Message is a base class for the objects returned by the Net::LDAP methods abandon, add, bind, compare, delete, modify, moddn,
search and unbind.
The sub-class Net::LDAP::Search returned by search also defines many methods.
If the Net::LDAP object is in async mode then all these methods, except "done" and "mesg_id", will cause a wait until the request is
completed.
METHODS
code ( )
The code value in the result message from the server. Normally for a success zero will be returned. Constants for the result codes can
be imported from the Net::LDAP or Net::LDAP::Constant module.
control ( )
Return a list of controls that were returned from the server.
control ( OID, ... )
Return a list of controls with the given OIDs that were returned from the server.
dn ( )
The DN in the result message from the server.
done ( )
Returns true if the request has been completed.
error ( )
Returns the error message in the result message from the server. If the server did not include an error message, then the result of
ldap_error_desc with the error code from the result message.
error_name ( )
Returns the name of the error code in the result message from the server. See ldap_error_name for a detailed description of the return
value.
error_text ( )
Returns the short text description of the error code in the result message from the server. See ldap_error_text for a detailed
description of the return value.
error_desc ( )
Returns a long text description of the error code in the result message from the server. See ldap_error_desc for a detailed description
of the return value.
is_error ( )
Returns true if the result code is considered to be an error for the operation.
mesg_id ( )
The message id of the request message sent to the server.
referrals ( )
Returns a list of referrals from the result message.
server_error ( )
The error message returned by the server, or "undef" if the server did not provide a message.
sync ( )
Wait for the server to complete the request.
SEE ALSO
Net::LDAP, Net::LDAP::Search, Net::LDAP::Constant, Net::LDAP::Util
ACKNOWLEDGEMENTS
This document is based on a document originally written by Russell Fulton <r.fulton@auckland.ac.nz>.
AUTHOR
Graham Barr <gbarr@pobox.com>
Please report any bugs, or post any suggestions, to the perl-ldap mailing list <perl-ldap@perl.org>.
COPYRIGHT
Copyright (c) 1997-2004 Graham Barr. All rights reserved. This program is free software; you can redistribute it and/or modify it under the
same terms as Perl itself.
perl v5.12.1 2008-06-30 Net::LDAP::Message(3)