Hello,
I'd like to do something but im not quite sure how. I think i might need to use a hash table.
Suppose I have a couple arrays
@array1 = ("apple","orange","grape");
@array2 = ("dogs","cats","birds");
I would like to be able to search for example "apple" and get a key value of "fruit"...
Annihilannic,
Thanks for your response. I will look into that option. Unfortunately we are using a custom written version the sudo command. Why? I don't know. I have to use the " - root" because for this command, I need to specify the user. I will look into that man file.
I'm trying to create a here document to automate the sudo command. Anyone have any experience with this? This is what I have but it's not working, it still prompts for password:
!/usr/bin/ksh
sudo - root pkgadd <<HereDoc
password
HereDoc
I found this:
http://empty.sourceforge.net/...
Im issuing the command by PERL script:
net user $id Password1 /add /usercomment:"$phone_num $user_email" /comment:"$user_comment" /passwordchg:no /fullname:"$full_name" /expires:never
This works fine. However, when I look on the active directory(under Administrative Tools), it puts the id...
I just wanted to get some tips as how to get the time stamp, this is on a windows environment but I'm able to execute some unix commands thanks to the MKS kit. Anywho, here is my code tell me what I'm doing wrong! :)
#This script searches the folders in the current
#directory, if it empty it...
Hey guys, I'm getting an error on this CGI script, I can't seem to find it.
here is the html and the script
<form name="form1" method="post" action="reviews.cgi">
<p align="center"><b><font color="#5E00BB" size="6"> </font><font size="6"><span class="style5">Rate -A-...
Try something like this
chdir($Path) ||
die "Cannot change directory to $Path: $!";
opendir(directory,".") ||
die "Cannot open the directory . (Directory may not exist): $!";
$i = 0;
foreach $file ( readdir(directory)) {
@files[$i] = "$file\n";
$i++;
}
closedir(directory);
Hello, I just wanted to know if there was a way to disable the displaying of the transcation when I execute an SMTP session using NET:SMTP module. I tried to turn the debug option to 0, but doesn't really do much, also tried to look for print statement within the .pm but didn't see anything that...
Hello all im trying to split a path with no luck
$str = 'C:\one\two\three';
@ray = split("/\\/",$str);
print"\n Here is the contents of \@ray: @ray[1]\n";
After this executes it doesn't perfrom the join and it's all put in the first value of the array.
ok i got that working, by doing the following
chomp(@to,@cc);
@recipients = (@to,@cc);
@recipients = join ("",@recipients);
$recipients = @recipients[0];
@recipients = split (",",$recipients);
$recipients = join ("','",@recipients);
The only thing is with this i get the following output...
I have an array that contains the following :
paul@compaq.com,thirteen@email.net,fourteen@email.net,fifteen@email.net,
What I wanted to do was to put single quotes around each email, still seperated by the commas. Basically I want it to look like...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.