some random perl nuggets

Posted on October 19, 2010. Filed under: Perl Tutorials |


http://www.webreference.com/programming/perl/subroutines/

http://www.troubleshooters.com/codecorn/littperl/perlreg.htm

http://www.washington.edu/perl5man/pod/perlref.html

http://www.stonehenge.com/merlyn/LinuxMag/col10.html

http://www.troubleshooters.com/codecorn/littperl/perlfile.htm

my($text) = "/etc/sysconfig/network-scripts/ifcfg-eth0";
my($directory, $filename) = $text =~ m/(.*\/)(.*)$/;
print "D=$directory, F=$filename\n";
Advertisements

Make a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Liked it here?
Why not try sites on the blogroll...

%d bloggers like this: