y.sawant

2013-07-20 Thread Yogesh Sawant
http://schuetzt-unsere-kinder.de/ds/fgxbilpnp.cxbawojcqjdkvkzfzipc -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Need Regex for phone number

2010-09-24 Thread Yogesh Sawant
On Fri, Sep 24, 2010 at 12:50 AM, lotug wrote: > I need regex code to identify 3108222400 phone number. > > If all of your phone numbers are ten digit, then: die "$phone_num is not a ten digit number" unless ($phone_num =~ m/^\d{10}$/); Do you need to include any more criteria? Regards, Yogesh

Re: Simplify a script which copies files

2009-02-26 Thread Yogesh Sawant
On Wed, Feb 25, 2009 at 6:14 PM, Lauri Nikkinen wrote: > Hi, > > I wrote a script which copies files in directory to an another > directory based on user input. Any suggestions to simplify or shorten > this? I'm using Win XP. > instead of accepting inputs from user, how about using command line a

Re: network program for copying file from a remote machine

2009-02-26 Thread Yogesh Sawant
On Thu, Feb 26, 2009 at 1:47 PM, Anirban Adhikary < anirban.adhik...@gmail.com> wrote: > Dear list > I want to write a program which can copy files from remote machine ( like > scp) using perl network programming.Is it possible to create such program? > how about using CPAN module Net::SCP - http

Re: disk performance or destructive testing

2008-12-20 Thread Yogesh Sawant
On Dec 17, 1:31 am, ben.pe...@gmail.com (Ben Perl) wrote: > Does anyone know any perl module for validating or do some desctructive > testing on disks on Linux platform? > found a few constructive ones, but nothing that would be destructive. i doubt that you would find any at CPAN. check if any

Re: poll

2007-12-13 Thread Yogesh Sawant
On Dec 12, 6:41 pm, [EMAIL PROTECTED] (Octavian Rasnita) wrote: > Hello, > > I have searched on cpan.org but I couldn't find what I need. Do you know if > there is a perl module that can create questionnaires for polls? > > I would like to use a module that could create questionnaires with more > q

Re: How to check the file is modified or not?

2007-10-29 Thread Yogesh Sawant
On Oct 29, 4:09 pm, [EMAIL PROTECTED] (Sivasakthi) wrote: > Hi All, > > How to check the file is modified or not? > > Thanks, > Siva 1. get the file's modify time using stat function 2. then compare that time with whatever time-date you have lookout stat in `perldoc perlfunc` or here's the link:

Re: writing to file

2007-06-23 Thread Yogesh Sawant
Vahid wrote: > Hi all, > I have the following code to sort UNIX's password file, it works fine > but can only display on stdout. How can I make it write the output to > a file? > Thanks, > > #!/bin/perl -w > # > use strict; > open(myFILE, '|-','awk','-F:','s[$1]++==0' ) or die $!; > open(passwdFH,