Your Open Source

CGI - PERL

Delete the file in PERL

How to Delete the file in Perl ? unlink() function used to delete the file. The Syntax is: unlink(filename); Example: #!/usr/bin/perl -w unlink("youropensource.txt"); # delete the youropensource.txt in the current path.

  • views 160
  • datetime Jul 30 08 02:32:09
  • author Sekar
  • rating

Trim function in CGI-PERL

Trim() function in perl:- The following function to trim the strings, sub trim($) { my $string = shift; $string =~ s/^\s+//; $string =~ s/\s+$//; return $string; }

  • views 57820
  • datetime Aug 10 09 07:05:59
  • author Sekar
  • rating

Learn how to open and read data files with Perl

Learn how to open and read data files with Perl Somewhere in my history of working with Perl and CGI programs, I decided I needed a program that would simply print all of the CGI environment variables that my Perl programs were aware of. I can't remember if it was curiosity or what, but I decided that I needed a CGI program that did nothing e..

  • views 92
  • datetime Jul 15 09 07:55:40
  • author Frm_suresh
  • rating

Featured
Top User's
sekarSekar
Posts 172
$103.43 USD
tjrambabuTjrambabu
Posts 145
$18.05 USD
damuDamu
Posts 67
$16.81 USD
lazywriterLazywriter
Posts 24
$3.13 USD
psbharathyPsbharathy
Posts 24
$4.2 USD