Re: error in Net::SFTP

2004-09-07 Thread Alexander Apprich
Jutu Subramanian, Srinivasan (Cognizant) wrote: Hi, I am getting the following error after installing and executing the Net::SFTP application in perl. Can you please clarify? Can't locate Net/SSH/Perl/Buffer.pm in @INC (@INC contains: C:\Program Files\ActiveState Komodo 2.5 C:/Perl/lib C:/Perl/

error in Net::SFTP

2004-09-07 Thread Jutu Subramanian, Srinivasan (Cognizant)
Title: error in Net::SFTP Hi, I am getting the following error after installing and executing the Net::SFTP application in perl. Can you please clarify? Can't locate Net/SSH/Perl/Buffer.pm in @INC (@INC contains: C:\Program Files\ActiveState Komodo 2.5 C:/Perl/lib C:/Perl/site/lib .) a

Re: Win32::Shell::Execute Alternative

2004-09-07 Thread Dax T. Games
use Win32::API; sub ShellExecute { my $LS_File = shift; my $LS_Action = shift; my $ShellExecute = new Win32::API("shell32", "ShellExecuteA", ['N','P', 'P', 'P', 'P', 'I'], 'N'); if ($ShellExecute->Call(0, $LS_Action, $LS_File,

Re: Win32::Shell::Execute Alternative

2004-09-07 Thread $Bill Luebkert
Huub Peters wrote: > I've written a gui application with wxPerl and I want to be able to execute > a (known) file from within the application (it's a list of files to be > attached to an e-mail) > So for example, when I attached a xls file (Excel) or an url I want to be > able to view it. Up till

Re: scanf equivalent?

2004-09-07 Thread Michael
Take me off this list please!Submitted by: [EMAIL PROTECTED] One day at a time! Do you Yahoo!? Yahoo! Mail is new and improved - Check it out!___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman

Re: scanf equivalent?

2004-09-07 Thread David D Miller
Exactly what I need. Thanks! dave. At 21:47 2004-09-07, David D Miller wrote: >My problem is to read a hex value from a file and process it in binary. >For instance, I read a file containing data of the form 0x0b4f. Then I >need to mask/shift etc that data before displaying it. You proba

Re: scanf equivalent?

2004-09-07 Thread Johan Lindstrom
At 21:47 2004-09-07, David D Miller wrote: My problem is to read a hex value from a file and process it in binary. For instance, I read a file containing data of the form 0x0b4f. Then I need to mask/shift etc that data before displaying it. You probably want hex(). perl -e "print hex('0x0b4f')" pe

scanf equivalent?

2004-09-07 Thread David D Miller
Experts: How do I do the equivalent of scanf in perl? My problem is to read a hex value from a file and process it in binary. For instance, I read a file containing data of the form 0x0b4f. Then I need to mask/shift etc that data before displaying it. dave.

RE: passing hash to a function

2004-09-07 Thread Charles K. Clarkson
jtownsen <[EMAIL PROTECTED]> wrote: : Typically I pass a string a variables to my functions. However, : as the list gets longer the script is harder to maintain. : Rather than a list, I thought I might pass the function a hash : (aka dictionary). I recall doing this when I took a Perl class, : but

Re: passing hash to a function

2004-09-07 Thread David Greenberg
> Is it possible to pass the dictionary directly, e.g. > > some_function (%some_hash); > > Or do I need to pass the function a reference to the hash. Please jog my > memory. It is possible: sub some_function { my %args = @_; ... } some_function (%some_hash); I think this will have an

passing hash to a function

2004-09-07 Thread jtownsen
Typically I pass a string a variables to my functions. However, as the list gets longer the script is harder to maintain. Rather than a list, I thought I might pass the function a hash (aka dictionary). I recall doing this when I took a Perl class, but don't recall the details. Is it possible t

RE: Sending Emails Through Exchange 5.5 on NT4/5

2004-09-07 Thread Steven Manross
If you can route the mail through the Exchange server's SMTP interface, then I am guessing you can use most of the modules you are used to.. Otherwise you are looking at writing a MAPI or Outlook script which is something new for you to learn, but by no means incredibly difficult (since there are

Win32::Shell::Execute Alternative

2004-09-07 Thread Huub Peters
I've written a gui application with wxPerl and I want to be able to execute a (known) file from within the application (it's a list of files to be attached to an e-mail) So for example, when I attached a xls file (Excel) or an url I want to be able to view it. Up till now I used the following to la

Re: Re: File::NCopy doesn't work with path/file names with spaces?

2004-09-07 Thread Richard Joh
Making the changes inside ../lib/File/Ncopy.pm seemes to fix the problem while putting "use File::NCopy ':glob';" in the user code didn't. One thing interesting, though, is that putting the line in my script made a little bit of difference--files containing one ' (singe quote) in the file names we

Re: File::NCopy doesn't work with path/file names with spaces?

2004-09-07 Thread $Bill Luebkert
Suresh Govindachar wrote: > $Bill Luebkert Sent on 07 Sep 2004 06:04:03 -0700: > > Richard Joh wrote: > > >>>[as in subject] >> >>Go to line 175 and add this line : >>use File::Glob; >> >>Find this line around 508 : >> push @args, glob $_[$i]; >>and comment it out and follow it with : >>

Re: File::NCopy doesn't work with path/file names with spaces?

2004-09-07 Thread Suresh Govindachar
$Bill Luebkert Sent on 07 Sep 2004 06:04:03 -0700: Richard Joh wrote: >> [as in subject] > > Go to line 175 and add this line : > use File::Glob; > > Find this line around 508 : >push @args, glob $_[$i]; > and comment it out and follow it with : >push @args, File::Glob::glob $_[