--- Telemachus Odysseos <[EMAIL PROTECTED]> wrote:
>
> #!/usr/bin/perl
>
> opendir(CD,"/path/to/directory/here");
> while ( $_ = readdir(CD)) {
> next if $_ eq "." or $_ eq "..";
> print $_, " " x (30-length($_));
> print (-s $_ );
Here you need to specify the absolute
--- kilaru rajeev <[EMAIL PROTECTED]> wrote:
>
> *cc* is installed at */usr/ucb/cc* but it is pointing to *
> /opt/SUNWspro/bin/cc.* Please help me to make it point to the
> /usr/bin/cc.
>
You may take a look at Makefile.PL and change something about the
complier.
But as a fast solution,how ab
--- herostar1981 <[EMAIL PROTECTED]> wrote:
> Hi all,
>I am meeting a big problem.
> I try to use Perl to connect MS Access database from a remote
> machine .
> But I can not find a good way.
> I want use the DSN-less way.
> I search it from google, and get this example:
> use DBI;
> $dbh = D
--- herostar1981 <[EMAIL PROTECTED]> wrote:
> But I search "connect remote ms access database" from google.
> I get these results:
>http://www.google.com/search?q=connect+remote+ms+access+database%22&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
>From the url I got,
--- [EMAIL PROTECTED] wrote:
> I am currently trying to write a Perl program in a Solaris 9
> environment
> I am trying to process a list of variables with UNIX environment
> variables embedded in them of the form
> $dir_to_check = "$ENV_VAR1/some_dir/$ENV_VAR2/another_dir";
> and I am trying to
--- Rob Dixon <[EMAIL PROTECTED]> wrote:
> >
> > It's `-d dir` for directory exist test.
> > `-e` is for file exist test.
>
> Not really. It's
>
> -e for item exists
> -d for item exists and is a directory
> -f for item exists and is a plain file
>
Sorry,my mistake.You're right.
--- [EMAIL PROTECTED] wrote:
> Hello,
>
> I am trying to do this
>
> #!/bin/perl
> $cmd="maheshverama #XX#";
> $cmd1=split /\s+/,$cmd;
> print $cmd1;
>
> Wanted the first part to be taken its giving me some numbers as output.
>
Hello,
because split return a lis
--- Andrew Curry <[EMAIL PROTECTED]> wrote:
> Split returns an array
returns a list not array.
see `perldoc -q "What is the difference between a list and an array?"`
Sick of deleting your inbox? Yahoo
--- [EMAIL PROTECTED] wrote:
> Thanks Andrew and Jeff.
> ($cmd1, $rest)=split/\s+/,cmd$; worked for me.
> my ($cmd1) = split/\s+/,$cmd; is still giving me the length...
> I wanted to use something like above ...
you may type something wrong?see the test,
$ cat t3.pl
my $cmd = "maheshverama
--- yitzle <[EMAIL PROTECTED]> wrote:
> Note: split splits on whitespace by default, so these two are the same:
> split /\s+/, @array;
> split @array;
>
Not right.You split a string,not an array or a list.
all below are wrong:
split @array;
split (11,22,33);
split $string;
see `perldoc -f spli
--- lerameur <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I want to write a perl script that invokes unix command. Some of the
> command can take a long time to process, I have many commands I want
> to invoke. Lets say the first command can take one minute to
> process, how can I make sure the se
--- sivasakthi <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> How to convert month in name in to digit number, for example the month
> is Apr then converted in to 04.. how to do that??
>
>
The easy way is to use a hash,
%mon = ('Jan' => '01',
'Feb' => '02',
...
);
then
12 matches
Mail list logo